conda笔记
conda笔记
环境管理
- 显示所有环境
conda env list
- 创建环境,这里-n表示-name,后面还可以直接加包的名字
conda create -n test python=2.7
- 拷贝现有环境
conda create -n test --clone py27
- 环境切换,Linux或Mac下需要使用在前面加一个source
activate test
conda deactivate
- 删除环境
conda env remove -n test
conda remove -n test --all
包管理
- 显示当前环境下所有包
conda list
- 安装包,可以增加参数-n [包名]来指定为哪个环境安装,可以增加参数-c [url]来指定用哪个地址安装
conda install numpy
- 更新包,可以增加参数-n [包名]来指定为哪个环境更新
conda update numpy
- 删除包,可以增加参数-n [包名]来指定为哪个环境删除
conda uninstall numpy
其它
- 更新conda
conda update -n base conda
- 增删源
conda config --add channels url
conda config --set show_channel_urls yes
conda config --remove channels url
- 显示现有源
conda config --show channels
conda笔记
http://example.com/2021/11/22/conda笔记/