django无法创建新工程

centos minimal,python2.6.6版本,django1.7.7版本,创建新项目报错如下,本人小白,词典翻译了一下也没弄明白怎么回事,求助
[root@localhost jangodir]# django-admin.py startproject zqxt_views
Traceback (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_s
cript 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 management
File "/usr/lib/python2.6/site-packages/Django-1.7.7-py2.6.egg/django/core/manag
ement/__init__.py", line 68 commands = {name: 'django.core' for name in find_commands(__path__[0])}
^
SyntaxError: invalid syntax

https://img2.mukewang.com/5b513efd00010f3106830476.jpg

繁星点点滴滴
浏览 489回答 2
2回答

撒科打诨

django1.7对python2.6支持可能有点问题,而且你的事1.7.7,我记得django1.8已经移除了python2.6的支持,因此你的解决方法有两个,装python2.7,或者pip install django==1.6版本1.7以下。
打开App,查看更多内容
随时随地看视频慕课网APP