第一步:下载地址:Anaconda | Anaconda Distribution
如果官方的网站下载不了,可以换成国内的镜像源:
anaconda | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror
北京外国语大学开源软件镜像站 | BFSU Open Source Mirror
(在官网下载)不要在点弹出页面的那个download按钮!不要点不要点!
页面拉到最下面!
选一个适合自己的下载,就欧了!
第二步:安装
点next
点agree
点next
自己设置路径
点install
等待安装ing
安装完一路next就好了
安装完之后,记得配置环境变量。
配置完环境变量之后,还要更换镜像源,不然pip分分钟time out
AnaConda/MiniConda 源配置
- 输入命令
conda config --set show_channel_urls yes
会在用户目录下生成配置文件.condarc - 修改.condarc 为如下内容,添加阿里源,不建议使用 https,会有证书报错处理起来很麻烦
channels:
- defaults
show_channel_urls: true
default_channels:
- http://mirrors.aliyun.com/anaconda/pkgs/main
- http://mirrors.aliyun.com/anaconda/pkgs/r
- http://mirrors.aliyun.com/anaconda/pkgs/msys2
custom_channels:
conda-forge: http://mirrors.aliyun.com/anaconda/cloud
msys2: http://mirrors.aliyun.com/anaconda/cloud
bioconda: http://mirrors.aliyun.com/anaconda/cloud
menpo: http://mirrors.aliyun.com/anaconda/cloud
pytorch: http://mirrors.aliyun.com/anaconda/cloud
simpleitk: http://mirrors.aliyun.com/anaconda/cloud
ssl_verify: false
Python Pip 源配置
- 使用命令
pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/
生成 pip 配置文件 pip.ini。 - 在 % APPDATA% 目录下的 pip 文件夹找到 pip.ini 文件,修改写入如下内容。
[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
到这里镜像源久配置好了,
使用命令 conda create -n {环境名称} python=3.8
创建一个 python 环境,再使用 pip 安装需要的库,就会发现,下载的时候是从阿里云的镜像云下载了,效率大大的提高哇!太棒啦!