借鉴的博文:
https://blog.csdn.net/ScapeD/article/details/104699643
- 查看子环境:
conda info -e
- 创建新环境:
conda create -n env_name python=<version>
- 切换环境:
conda activate env_name
- 删除环境:
conda remove -n env_name --all
- 查看安装包:
conda list
- 查找包:
conda search package_name
- 增加源:
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
# 设置搜索时显示通道地址
conda config --set show_channel_urls yes
- 选择版本安装
conda install python=<version>
- 查看源
conda config --show channels
- 删除源
conda config --remove channels <http源>
- 更新
conda update [--all | conda | anaconda | <package> ]
- 升级包
conda install <package>==<type>
conda 中使用清华镜像源
博客地址:
【https://blog.csdn.net/genous110/article/details/92642663】