python3.6和2.7共用一個anaconda

1.設置清華鏡像源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes

2.這之後在你的c:\Users\用戶名下的.condarc中就會多了我們添加的地址(刪除defaults那一行);

3.打開anaconda prompt,依次輸入執行:(如果你有2.7那麼創建的就是3.6;反之,創建的是2.7

conda update conda
conda create --name python3 python=3.6
activate python3
conda install anaconda

4.然後,你就發現,每一個都多了一個python2的分支;完成!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章