Ubuntu Anaconda envs
1.安装自己经常使用的Anaconda版本
sh ./Anaconda3-5.0.1-Linux-x86_64.sh
2. 默认安装到 /home/usr/anaconda3下面,在anaconda3文件夹下面创建envs文件夹
cd /home/usr/anaconda3
mkdir envs
3. 在envs创建文件夹名字为py2
cd envs
mkdir py2
4.安装Anaconda2和配置
$ sh Anaconda2-5.0.1-Linux-x86_64.sh -b -p $HOME/anaconda3/envs/py2
$ 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 ../../.sh/bin/conda .
$ ln -s ../../../bin/activate .
$ ln -s ../../../bin/deactivate .
5.Anaconda安装的环境,使用conda environment info 命令来查看
6. 激活py2和取消
source activate py2
source deactivate py2
7. 更新软件或者安装指定版本的软件
$ conda update python
$ conda install python=3.6
Windows python version list and switch method
1. list all python version in envs
conda info --envs
2. switch different verison python
activate py2
deactivate