文章标签 ‘django’

转载时请标明文章原始出处和作者信息, 作者: lostsnow.http://www.lsproc.com/blog/configure_python_and_django_on_dreamhost/ 1. 升级python到2.5.2: 用Putty登录到DreamHost的Shell控制台执行如下的命令: mkdir opt cd opt mkdir packages cd packages wget http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tgz tar -xzvf Python-2.5.2.tgz cd Python-2.5.2 ./configure -prefix=$HOME/opt make make install python 2.5已经安装好了。把python 2.5设置为默认版本: vim ~/.bash_profile 然后,在~/.bash_profile里加入一条: export PATH=$HOME/opt/bin/:$PATH 重新载入配置文件: source ~/.bash_profile 检验一下是否成功: $python -V Python 2.5.2 2. 安装python-Mysql cd ~/opt/packages wget http://internap.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.2.tar.gz tar xvzf MySQL-python-1.2.2.tar.gz cd MySQL-python-1.2.2 python setup.py [...]

2008年11月5日21:56 | 5 条评论