centos minimal,python2.6.6版本,django1.7.7版本,创建新项目报错如下,本人小白,词典翻译了一下也没弄明白怎么回事,求助[root@localhost jangodir]# django-admin.py startproject zqxt_viewsTraceback (most recent call last):File "/usr/bin/django-admin.py", line 4, in <module>__import__('pkg_resources').run_script('Django==1.7.7', 'django-admin.py')File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 723, in run_script File "build/bdist.linux-i686/egg/pkg_resources/__init__.py", line 1636, in run_script File "/usr/lib/python2.6/site-packages/Django-1.7.7-py2.6.egg/EGG-INFO/scripts/django-admin.py", line 2, in <module> from django.core import managementFile "/usr/lib/python2.6/site-packages/Django-1.7.7-py2.6.egg/django/core/management/__init__.py", line 68 commands = {name: 'django.core' for name in find_commands(__path__[0])}^SyntaxError: invalid syntax
2 回答
撒科打诨
TA贡献1934条经验 获得超2个赞
django1.7对python2.6支持可能有点问题,而且你的事1.7.7,我记得django1.8已经移除了python2.6的支持,因此你的解决方法有两个,装python2.7,或者pip install django==1.6版本1.7以下。
- 2 回答
- 0 关注
- 488 浏览
添加回答
举报
0/150
提交
取消