Conda
获取版本号
conda --version
更换源
更换清华源
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main
conda config --set show_channel_urls yes
换回默认源
conda config --remove-key channels
环境管理
创建环境
conda create -n xxxx python=xxx
列举当前环境
conda info --envs
conda env list
进入环境
activate xxx
退出环境
deactivate
复制环境
conda create --name new_env_name --clone old_env_name
删除环境
conda remove --name your_env_name --all
包管理
列举包
conda list
升级包
conda update xxx
删除包
conda uninstall xxx