linux下python、django框架的配置
-
python2.6
- 下载wget http://www.python.org/ftp/python/2.6.7/Python-2.6.7.tgz
- 解压 tar –zxvf python-2.6.7.tgz
- cd python-2.6.7
- ./configure
- make
- make install
- 替换原有python: cd /usr/bin
- rm –rf python
- ln -s /usr/local/bin/python2.6 ./python
- Python –V 显示 python2.6.7即成功
- django1.2.5及以上
- 下载Wget http://www.djangoproject.com/download/1.3/tarball/
- tar zxvf Django-1.3.tar.gz
- cd Django-1.3
- sudo python setup.py install
- 验证 :进入python shell,import django 无错则安装成功
- MySQLdb
MySQL-python-1.2.2.tar.gz
tar zxvf MySQL-python-1.2.2.tar.gz
cd MySQL-python-1.2.2
python setup.py install即可