命令大全 2021-10-23 Comments常用命令123456789101112131415161718192021222324252627# 检查版本conda --version# 升级版本conda update conda# 创建环境conda create --name xxxx python=3.9# 查看所有环境conda info -envs# 复制环境conda create -n xxx --clone xxxx# 删除环境conda remove -n xxxx# 查看已安装包conda list# 向指定环境中安装包conda install ---name env_xx xlrd_xxx# 删除指定环境包conda remove -n env_xxx xlrd_xxx# 删除环境conda remove -n env_xxx --allWin 命令1234# 激活环境activate xxxxxLinux 命令12# 激活环境source activate xxxx功能模块配置国内镜像源123456789# 为 conda 添加国内镜像源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --set show_channel_urls yes# 为 pip 添加国内镜像源pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -Upip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple修改镜像源12345678910111213# 添加阿里云源conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/#设置搜索时显示通道地址conda config --set show_channel_urls yes# 移除conda config --remove channels xxxx# 移除全部conda config --remove channels