01. Python3.7 版本安装教程
2022-07-06 本文已影响0人
拖延症患者10
- 去 Python 官网下载你想要的版本。官网:https://www.python.org
![](https://img.haomeiwen.com/i3930826/54bff011c1faef36.png)
![](https://img.haomeiwen.com/i3930826/26ea6f314ab6661b.png)
- Python 官网有几个不同的下载文件,现在大多是都是 64 位的操作系统,所以我们下载 x86-64 的文件,此处我选择的版本是 Python 3.7.9。
注:web-based installer
是需要通过联网完成安装的
executable installer
是可执行文件(*.exe
)方式安装,这种安装方式很方便,所以一般都安装这种。
![](https://img.haomeiwen.com/i3930826/f522b7a5d89de7c8.png)
- 下载完成。
![](https://img.haomeiwen.com/i3930826/8e16b3bcacc04d69.png)
- 双击打开安装包,进入以下界面,勾选
Add Python 3.7 to PATH
,这样它会自动配置 Python 的环境变量。
![](https://img.haomeiwen.com/i3930826/28ac677477f5f421.png)
- 当前默认,直接
next
。
![](https://img.haomeiwen.com/i3930826/e69ee9242dbfda56.png)
- 自定义软件安装位置,此处我选择默认路径,最好不要有中文,有些软件遇到中文可能会打不开。
![](https://img.haomeiwen.com/i3930826/30dfd1918efb0906.png)
- 等待安装。
![](https://img.haomeiwen.com/i3930826/77ffd803c30ebbbd.png)
- 安装成功即可关闭。
![](https://img.haomeiwen.com/i3930826/132d0068ac69c438.png)
-
Win + R
,输入cmd
,点击确定,输入 Python 后,显示 Python 版本号说明已经安装成功。
![](https://img.haomeiwen.com/i3930826/c341e8a1bab6030e.png)
![](https://img.haomeiwen.com/i3930826/289467cb6d961691.png)
- 如果安装失败,首先查看环境变量是否配置。在我的电脑右键
属性
,进入页面点击高级属性
,选择环境变量
。
![](https://img.haomeiwen.com/i3930826/67595041e860b0ff.png)
- 双击用户变量中的
Path
。
![](https://img.haomeiwen.com/i3930826/8272e236c0656fa3.png)
- 如果没有这两个环境变量就手动添加。(注:每个人的安装路径都不一样,根据自己的安装路径配置。)
![](https://img.haomeiwen.com/i3930826/9c84d7b3c4fdc61c.png)