TRACING venv pip

venv的使用.

http://pythonguidecn.readthedocs.io/zh/latest/dev/virtualenvs.html

1
2
3
4
5
6
7
8
pip install virtualenv
cd my_project_folder
virtualenv venv
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate
deactivate
1
pip freeze > requirements.txt

配置为国内源

1
2
3
4
5
# vi ~/.pip/pip.conf
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host=mirrors.aliyun.com