1.首先安装anaconda,这一步建议将添加到环境变量的选项√上,也可不勾选自己手动添加。
安装好之后打开cmd输入conda可以查看有没有加入到环境变量中。如果出现了一大串代码则表示添加成功。
2.可以添加国内的一些镜像源来增加下载速度。(非必要步骤,但在国内使用pip默认源安装时速度较为缓慢,采用国内的镜像源进行安装速度较快)
conda config --remove-key channels
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.bfsu.edu.cn/anaconda/cloud/pytorch/
conda config --set show_channel_urls yes
pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
3.查看电脑里的python版本。
```python