1、下载windows下的python安装包
python下载地址:https://www.python.org/
从上述网站中进去python官网,进行如下操作:
(1) Downloads->Windows->View the full list of downloads。如图1.
(2) Looking for Python with a different OS? 中选择Windows选项。 如图2.
(3) 根据操作系统选择需要的版本(以3.6.5版本64位为例)。如图3
其中,x86是32位,x86-64是64位。
可以通过下面3种途径获取python:
web-based installer 是需要通过联网完成安装的
executable installer 是可执行文件(*.exe)方式安装
embeddable zip file 嵌入式版本,可以集成到其它应用中。
图1
图2
图3
- Python的安装
Disable path length limit最后那个蓝色框框的
Changes your machine configuration to allow programs,including Python,
to bypass the 260 character"MAX_PATH" limitation.
这是说明你电脑对Python的一些限制,点击它然后确定权限就可以了。
图6
图7 4.检测是否安装成功输入python,有如print("hello world")前的表面安装成功;如图8 输入第一个python程序 hello world ; 其中exit()退出python; 也可以通过cortana找到idle进行编程。如图9
图8
文章评论