mac系统自带python2.7
安装 virtualenv pip install virtualenv
安装python3
brew install python3
pip3 install virtualenv
创建环境
#python2
virtualenv py2env
source py2env/bin/activate
#python3
virtualenv -p $(which python3) py3env
source py3env/bin/activate
mac系统自带python2.7
安装 virtualenv pip install virtualenv
安装python3
brew install python3
pip3 install virtualenv
创建环境
#python2
virtualenv py2env
source py2env/bin/activate
#python3
virtualenv -p $(which python3) py3env
source py3env/bin/activate
本文标题:Mac系统Python双版本
本文链接:https://www.haomeiwen.com/subject/iwdjhftx.html
网友评论