Django==1.7
flup==1.0.2
python==2.6
stevedore==0.15
virtualenv==1.11.6
virtualenv-clone==0.2.5
virtualenvwrapper==4.3.1
我嘗試運行django-admin.py
,但我不斷收到這樣的bizzare語法錯誤,都在一個新安裝的Django的..Django的:不能運行django-admin.py
File "/home/ibusdep1/.virtualenvs/ibus/bin/django-admin.py", line 2, in <module>
from django.core import management
File "/home/ibusdep1/.virtualenvs/ibus/lib/python2.6/site-packages/django/core/management/__init__.py", line 68
commands = {name: 'django.core' for name in find_commands(__path__[0])}
^
SyntaxError: invalid syntax
的Django安裝在/.virtualenv/(projectname)/lib/python2.6/site-packages/Django
它在我的$ PYTHONPATH中。
什麼可能會引發此語法錯誤?