用法

$ cd test_proj

创建虚拟环境:

$ virtualenv test_proj

要开始使用虚拟环境,需要激活它:

$ source test_project/bin/activate

要退出 virtualenv,只需输入 deactivate:

$ deactivate