美文网首页
macOS 安装python虚拟环境

macOS 安装python虚拟环境

作者: b1cb966f0ff3 | 来源:发表于2019-03-05 23:15 被阅读0次

安装虚拟化软件

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

可以看到相关命令提示

图片.png

相关文章

网友评论

      本文标题:macOS 安装python虚拟环境

      本文链接:https://www.haomeiwen.com/subject/hvaauqtx.html