[AppleScript] 纯文本查看 复制代码
Project home page: http://www.doughellmann.com/projects/virtualenvwrapper/
#
#
# Setup:
1. Create a directory to hold the virtual environments.
(mkdir $HOME/.virtualenvs).
创建一个目录来存储虚拟环境, 一般安装后.virtualenvs目录已经存在,所以可以省略这部
2. Add a line like "export WORKON_HOME=$HOME/.virtualenvs"
to your .bashrc.
3. Add a line like "source /path/to/this/file/virtualenvwrapper.sh" to your .bashrc.
在~/.bashrc中添加行:
source /usr/local/bin/virtualenvwrapper.sh
4. Run: source ~/.bashrc
运行: source ~/.bashrc
5. Run: workon A list of environments, empty, is printed.
运行workon,列出虚拟环境列表, 也可以使用:lsvirtualenv
6. Run: mkvirtualenv temp # temp -- 新建虚拟环境名
7. Run: workon 虚拟环境名称
启动/切换到 虚拟环境
8. deactivate 离开虚拟环境