conda常用命令

创建环境

conda create -n env_name python=x.x

激活环境

source activate env_name

退出环境

conda deactivate

换源

vim ~/.condarc

channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true

你可能感兴趣的:(conda常用命令)