
上QQ阅读APP看本书,新人免费读10天
设备和账号都新为新人
2.1.2 在Windows 10系统中下载并安装Python 3.7.6
本书所有的编码都是在Windows 10系统下进行的,所以这里不再赘述在Linux系统下Python 3.7.6的安装步骤。在macOS系统下与在Windows 10系统下的安装步骤类似,所以也不再赘述。笔者使用的台式机的CPU是锐龙Ryzen7 1700,所以下载的是AMD64的Python解释器,读者可以选择与自己所用CPU匹配的Python解释器进行下载。
首先,打开Python官方网站,下载Python 3.7.6,依次选择“Downloads→Windows→View the full list of downloads.”选项,如图2-1所示。

图2-1 进入适用于Windows系统的Python下载界面
然后在弹出的界面中找到Python 3.7.6区域的选项,并选择“Download Windows x86 executable installer”选项,如图2-2所示。

图2-2 选择并下载Python 3.7.6
下载完成后打开安装程序,勾选“Add Python 3.7 to PATH”复选框,自动添加Python 3.7的路径到系统环境变量。然后选择“Install Now”选项,使用默认安装路径。如果选择“Customize installation”选项,则可以自己选择安装路径,如图2-3所示。

图2-3 选择安装方式
安装成功后,单击“Close”按钮,如图2-4所示。

图2-4 安装成功
按Windows+R快捷键,打开“运行”界面(见图2-5),在“打开”文本框中输入“cmd”。

图2-5 “运行”界面
单击“确定”按钮,在弹出的对话框中输入“python”并按回车键,若弹出如下内容,则表示安装成功:
