一、版本查询
- 查看conda版本
conda -V
- 查询CUDA版本
nvcc -V
二、虚拟环境
- 创建虚拟环境
conda create -n 环境名 python=版本号
例:创建一个名为test、python3.7的虚拟环境
conda create -n test python=3.7
- 激活虚拟环境
activate 环境名
例:激活名为test的虚拟环境
activate test
- 退出当前环境
deactivate
- 查询所有已创建虚拟环境
conda info -e
- 删除虚拟环境
conda remove -n 环境名 --all
例:删除名为test的虚拟环境
conda remove -n test --all
三、包
- 安装包
conda install 包名
- 查看当前环境已安装的包
conda list
- 删除包
conda remove 包名