官网首页:https://www.anaconda.com/
官网下载页:https://www.anaconda.com/products/individual#Downloads
清华镜像下载(推荐)
https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/
# 最新Anaconda3的安装配置及使用教程(详细过程)
https://blog.csdn.net/howiexue/article/details/118442904
配置国内镜像源
继续在cmd里,通过输入下面命令配置为清华源:
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配置
conda config --show
conda config --show channels
conda config --get channels
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 --remove channels defaults
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --remove channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
常用命令
conda info
创建所需的python环境
conda create --name python27_64 python=2.7
激活创建的python环境
conda activate python27_64
其他可能需要用到的命令
conda deactivate python37 #返回原来的python环境
conda remove --name python37_32 --all #删除python环境(要先返回原来的环境才能删除)
conda install requests #安装第三方包
conda install spyder
conda remove requests #卸载第三方包
conda list #查看环境包信息
conda env export > environment.yaml #导出环境,将包信息存入yaml文件中
conda env create -f environment.yaml #导入环境,重新创建一个相同的虚拟环境时用
D:\ProgramData\Anaconda3\Lib\site-packages