Anaconda2和Anaconda3同时安装

转载于:https://www.cnblogs.com/zle1992/p/6720425.html

1.先从网站(国内的清华镜像:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/)下载两个版本的安装包

2.安装Anaconda2:

bash Anaconda2-4.3.1-Linux-x86_64.sh

3.安装Anaconda3

bash Anaconda3-4.3.0-Linux-x86_64.sh -b -p $HOME/anaconda2/envs/py3

rm -f $HOME/anaconda2/envs/py3/bin/conda*
rm -f $HOME/anaconda2/envs/py3/conda-meta/conda-*
rm -f $HOME/anaconda2/envs/py3/bin/activate

rm -f $HOME/anaconda2/envs/py3/bin/deactivate

cd $HOME/anaconda2/envs/py3/bin

ln -s ../../../bin/conda .

ln -s ../../../bin/activate .

ln -s ../../../bin/deactivate .

4.重启一下命令行

5.conda info --envs

6.切换到anada3

  source deactivate py3

posted @ 2017-12-01 15:40  mengxiangjialzh  阅读(930)  评论(0编辑  收藏  举报