requirements.txt 文件:
django>=1.1 mysql-python python-openid psycopg2 html5lib markdown git+git://github.com/dcramer/django-sphinx.git 南
首先, virtualenv ~/webapps/ --distribute source ~/webapps//bin/activate export PATH=/usr/pgsql-9.1/bin/:$PATH (这是为了避免 pg_config not found 错误 http://community. webfaction.com/questions/736/installing-psycopg2)然后 pip-2.7 install -r requirements.txt
记住不要 pip install which install into 2.4; 需要调用 pip-2.7 安装