安装虚拟化软件
sudo pip install virtualenv
sudo easy_install virtualenvwrapper
找到安装路径
which virtualenvwrapper.sh
which python3
配置虚拟化目录
vi ~/.bash_profile
输入
export WORKON_HOME='~/.virtualenvs'
export VIRTUALENVWRAPPER_PYTHON='/Users/mac/anaconda/bin/python3'
source /Users/mac/anaconda/bin/virtualenvwrapper.sh
保存运行这个命令 source ~/.bash_profile
可以看到相关命令提示

网友评论