Anaconda中python2.7、python3.5共存

前提:Mac已装 Mac Anaconda(python3.5)。

1)terminal
2)conda create -n python2 python=2.7 anaconda
3)Proceed ([y]/n)? y
4)激活python2环境
— 方法1:terminal----source activate python2(激活)----source deactivate python2(退出)
— 方法2:在Anaconda中,设置环境

5)在jupyter notebook中使用该环境

猜你喜欢

转载自www.cnblogs.com/liaoxinwaiting/p/9108163.html