anaconda部分命令
window设置环境变量
D:\Anaconda3\condabin |
创建环境
conda create --name python37 python=3.7 |
切换环境
window
activate python37 |
linux切换
source activate python37 |
退出环境
window
deactivate |
linux
source deactivate |
显示已创建环境
conda info -e |
删除环境
conda remove --name python37 --all |
克隆环境 从AAA 克隆到BBB
conda create -n BBB --clone AAA |
conda 修改国内源
查看当前的配置
conda config --show channels
若无提示 初始化配置
conda config
添加国内源
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
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment