Python基础之Python解释器安装(Windows)
Python基础之Python解释器安装(Windows)
Python官网:https://www.python.org/
版本选择:https://www.python.org/downloads/windows/
Python 3.6.8 - Dec. 24, 2018
python-3.6.8-amd64.exe Download Windows x86-64 executable installer
Download URL:https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe
添加环境变量
自定义安装
选择安装Python文档
自定义安装路径
安装完成
手动添加环境变量
用户变量
添加Python 3.6.8的python.exe路径与Scripts脚本路径
添加Python 2.7.16的python.exe路径与Scripts脚本路径- 系统变量
添加Python 3.6.8的python.exe路径与Scripts脚本路径
添加Python 2.7.16的python.exe路径与Scripts脚本路径
命令行验证安装是否成功
C:\Users\charl>python Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 24 2018, 00:16:47) [MSC v.1916 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.
- 运行第一个Python代码
C:\pycode\hello_world.py
print(‘Hello World!‘)
cmd
C:\Users\charl>cd c:\pycode c:\pycode>python hello_world.py Hello World!
相关推荐
huavhuahua 2020-11-20
weiiron 2020-11-16
cakecc00 2020-11-15
千锋 2020-11-15
JakobHu 2020-11-14
guangcheng 2020-11-13
xirongxudlut 2020-11-10
solarLan 2020-11-09
pythonxuexi 2020-11-08
文山羊 2020-11-07
susmote 2020-11-07
wuShiJingZuo 2020-11-05
Pythonjeff远 2020-11-06
jacktangj 2020-11-04
lousir 2020-11-04
Noneyes 2020-11-10
ailxxiaoli 2020-11-16
chensen 2020-11-14
Nostalgiachild 2020-11-13