conda常用命令

创建环境:
conda create -n py37 python=3.7

删除环境:
conda remove -n py37 --all

默认不激活

conda config --set auto_activate_base False

进入环境:
conda activate py37
退出环境:
conda deactivate

环境信息:
conda info --envs

显示环境:
conda env list

安装包更新:
conda install XXX
conda remove XXX
conda update --all

conda update conda

conda config --set show_channel_urls yes
新增仓库:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda install numpy #测试是否添加成功

conda config --show

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

posted @ 2018-12-07 09:27  TIMLONG  阅读(393)  评论(0编辑  收藏  举报