http://conda.pydata.org/docs/test-drive.html
Install a different version of Python
conda create --name py2 python=2
Verify environment added
conda info --envs
Use a different version of Python
-Linux, OS X:
source activate py2
-Windows:
activate py2
Deactivate this environment
-Linux, OS X:
source deactivate
-Windows:
deactivate
Verify current environment
conda info --envs
# conda environments:
#
py2 * D:\Anaconda3\envs\py2
root D:\Anaconda3
Verify Python version in new environment
python --version
Update * to the current version
conda update *
remove package *
conda remove *
Change jupyter notebook environment
1.open Anaconda
2.change Application on: py2
3.install jupyter notebook
重命名环境
conda 其实没有重命名指令,实现重命名是通过 clone 完成的,分两步:
- 先 clone 一份 new name 的环境
- 删除 old name 的环境
比如,想把环境 rcnn 重命名成 tf
第1步
conda create -n tf --clone rcnn
Source: /anaconda3/envs/rcnn
Destination: /anaconda3/envs/tf
Packages: 37
Files: 8463
第2步
conda remove -n rcnn --all