官网下载地址:
https://www.anaconda.com/download/
path环境变量:
Anaconda3
Anaconda3/Scripts
Anaconda3/Library/bin
创建虚拟环境
conda create -n <env-name> [python=x.x]
激活 退出 移除 拷贝 虚拟环境
conda active <env-name>
conda deactivate <env-name>
conda remove -n <env-name>
查看安装包
conda list
查看所有虚拟环境:
conda env list
安装 卸载 搜索 更新 包
conda install <pack-name>
conda remove <pack-name>
conda search <pack-name>
conda update <pack-name>
注册镜像源路径到配置文件
点击查看代码
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/menpo/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
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/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes