美文网首页
Ubuntu Python2 和 Python3 使用 Anac

Ubuntu Python2 和 Python3 使用 Anac

作者: zormin | 来源:发表于2017-12-21 15:46 被阅读219次

假设已经装好Anaconda2 / Python 2.7,

创建环境

conda create --name ‘name’ python=3.6 // 'name' 换成想用的名字

激活环境

source activate 'name' // 'name'是上条命令中自己用的名字

退出环境

终端关掉就行

再次使用环境

source activate 'name'

相关文章

网友评论

      本文标题:Ubuntu Python2 和 Python3 使用 Anac

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