conda深入学习-镜像与虚拟环境

conda深入学习


1.镜像的添加和删除
增加源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --set show_channel_urls yes


查看源
conda config --show


删除源
conda config --remove channels 'https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/'


2.创建python虚拟环境
1.创建
conda create -n your_env_name python=X.X(2.7、3.6等)
2.激活
source activate your_env_name
3.安装
conda install -n your_env_name [package]
.关闭
source deactivate


[1] 增加删除镜像 https://blog.csdn.net/mtj66/article/details/57074986
[2] conda创建python虚拟环境 https://blog.csdn.net/lyy14011305/article/details/59500819

猜你喜欢

转载自blog.csdn.net/andeyeluguo/article/details/80255458
今日推荐