ubuntu同时安装anaconda2和anaconda3

1. 首先,安装anaconda3


2.安装anaconda2
bash Anaconda2-4.4.0-Linux-x86_64.sh -b -p $HOME/anaconda3/envs/py2
rm -f $HOME/anaconda3/envs/py2/bin/conda* rm -f $HOME/anaconda3/envs/py2/conda-meta/conda-* rm -f $HOME/anaconda3/envs/py2/bin/activate
rm -f $HOME/anaconda3/envs/py2/bin/deactivate
cd $HOME/anaconda3/envs/py2/bin
ln -s ../../../bin/conda .
ln -s ../../../bin/activate .
ln -s ../../../bin/deactivate .


查看python环境:
conda info --envs

posted @ 2021-05-07 10:50  勤奋的小呆  阅读(116)  评论(0编辑  收藏  举报