Anaconda虚拟环境管理

创建环境:

$ conda create -n tensorflow pip  python=3.6

激活环境

source activate tensorflow

退出环境

source deactivate

列出创建的环境

gs@gs:~$ conda env list
# conda environments:
#
base                  *  /home/gs/anaconda3
caffe2                   /home/gs/anaconda3/envs/caffe2
py27                     /home/gs/anaconda3/envs/py27
pytorch                  /home/gs/anaconda3/envs/pytorch
sst_py                   /home/gs/anaconda3/envs/sst_py
tensorflow               /home/gs/anaconda3/envs/tensorflow
untitled                 /home/gs/anaconda3/envs/untitled

删除环境

conda env remove -n tensorflow

你可能感兴趣的:(Anaconda虚拟环境管理)