电脑浏览器打开python官方网站:https://www.python.org/downloads/windows/

当然,我也推荐你点击all releases,然后下载python3.7.0版本进行安装,本系列教程都将在这个版本下进行编写代码。

当然你也可以直接访问:www.python.org/downloads/r… 选择合适版本进行下载,一般选择下载安装包安装,如图圈红的两个安装包,一个是mac的,一个是windows下的。

windows下安装过程
1)点击下载好的安装包,即可进入下图所示安装界面,然后勾选上install launcher for all users和 add python 3.7 to path,主要是安装python编辑启动器和将python环境添加到系统环境变量中。
勾选好,然后点击customize installation,这样在后面可以自定义安装哪些内容,以及安装路径。(对运营以及其他学习者来说,安装软件或者环境的时候最重要的就是安装路径一定不要默认,一般默认都在c盘,会影响系统运行流畅性)

2)遇到教程中没有的页面就直接点击next即可,进入到下方页面,按图中示例勾选需要安装的配置即可,另外点击browse,选择安装路径,图中是在d盘中新建了一个文件夹python,然后安装在其中。按图示配置好后,点击install按钮即可进行安装。

3)整个安装过程3-5分钟。

安装好后,点击close按钮即可。

4)windows打开cmd,然后输入python --version即可看到自己安装好的python版本,然后输入python,即可进入代码编辑环境,我们可以尝试输入print('hello python!'),然后回车,看看效果,输入exit()可以退出编辑环境。
