#django-admin.py startproject mysiteTraceback (most recent call last):File "/usr/bin/django-admin.py", line 2, in ?from django.core import managementFile "/usr/lib/python2.4/site-packages/django/core/management/__init__.py", line 8, in ?from django.core.management.base import BaseCommand, CommandError, handle_default_optionsFile "/usr/lib/python2.4/site-packages/django/core/management/base.py", line 6from __future__ import with_statementSyntaxError: future feature with_statement is not defined上面是配置django时出现的错误。
1 回答
繁星点点滴滴
TA贡献1803条经验 获得超3个赞
python2.4 好老的python版本,试试python2.6或者python2.7安装django? 一般有两种方法安装python库:
1,easy_install
sudo easy_install django
2,linux自带的软件包安装工具。ubuntu下:
sudo apt-get install python-django
- 1 回答
- 0 关注
- 596 浏览
添加回答
举报
0/150
提交
取消