写了一个Django安装指南。
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
写了一个Django安装指南。
http://wiki.ubuntu.org.cn/Django
# 安装python-setuptools 0.6c1,系统自带的是0.6b1 ,不适合最新的Django框架
wget -c http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py
# 下载Django并安装
wget -c http://media.djangoproject.com/releases ... .95.tar.gz
tar xzvf Django-0.95.tar.gz
cd Django-0.95
sudo python setup.py install
# 安装python-setuptools 0.6c1,系统自带的是0.6b1 ,不适合最新的Django框架
wget -c http://peak.telecommunity.com/dist/ez_setup.py
sudo python ez_setup.py
# 下载Django并安装
wget -c http://media.djangoproject.com/releases ... .95.tar.gz
tar xzvf Django-0.95.tar.gz
cd Django-0.95
sudo python setup.py install
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
- SuperWar3Fan
- 帖子: 1263
- 注册时间: 2006-05-20 6:25
- 来自: 山东淄博
- 联系:
-
- 帖子: 4
- 注册时间: 2006-11-13 16:11
为什么我按照上面的安装方法会报这样的错 :
In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
In file included from /usr/include/mysql/mysql.h:33,
from _mysql.c:40:
/usr/include/sys/types.h:153: error: duplicate ‘unsigned’
而且我自己下载 mysql-python-1.2.0 同样也是报上面的错误,我自己也一直找不到Python.h。是不是要该site.cfg里面的什么东西?请指点,谢谢!
In file included from _mysql.c:29:
pymemcompat.h:10:20: error: Python.h: No such file or directory
_mysql.c:30:26: error: structmember.h: No such file or directory
In file included from /usr/include/mysql/mysql.h:33,
from _mysql.c:40:
/usr/include/sys/types.h:153: error: duplicate ‘unsigned’
而且我自己下载 mysql-python-1.2.0 同样也是报上面的错误,我自己也一直找不到Python.h。是不是要该site.cfg里面的什么东西?请指点,谢谢!
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
-
- 帖子: 1
- 注册时间: 2007-12-24 14:02
- RichieKeh
- 帖子: 9
- 注册时间: 2007-12-04 20:38
- 联系: