windows下的Python安装

一、先到官网下载Python:https://www.python.org/downloads/,选择自己要下载的版本

windows下的Python安装

 

windows下的Python安装

 

选择Windows x86-64 executable installer。下载好后安装。

二、安装

打开python-3.7.2-amd64.exe

windows下的Python安装

 

注意勾选add python 3.7 to path,这样的话就不用设置环境变量了。

windows下的Python安装

三、安装成功,进行验证

打开cmdwindows下的Python安装

 

输入python,回车enter

windows下的Python安装

 

显示成这样即安装成功。

输入print("helloworld"),回车

windows下的Python安装

可以看到以上效果图。这就是你的python第一段代码helloworld!!!