Python 安装与环境配置
导读:【Python 安装与环境配置】一、下载 PythonPython 官网链接点击 Downloads选择版本下载 二、安装 Python双击安装包勾选 Install launcher for all users (recommended ...
【Python 安装与环境配置】
一、下载 Python
- Python 官网链接
- 点击 Downloads
- 选择版本下载
二、安装 Python
- 双击安装包
- 勾选
Install launcher for all users (recommended)
Add Python 3.8 to PATH
- 点击
Customize installation
- 勾选
Documentation
pip
tcl/tk and IDLE
Python test suite
py launcher
for all users (requires elevation)
- 点击 Next
- 勾选
Install for all users
Associate files with Python (requires the py launcher)
Create shortcuts for installed applications
Add Python to environment variables
Precompile standard library
- 修改安装路径
- 点击 Install
- 安装完成
三、配置 Python 与 pip
安装时勾选了 Add Python 3.8 to PATH
则会自动配置
python.exe
位于 python 安装根目录。
pip.exe
位于 python 安装根目录里的 Scripts 目录内。
将以上路径的全局路径分别添加到系统的 Path 环境变量中。
打开 命令行 分别键入 python
,pip
成功识别即为配置成功。
四、配置 IDLE
idle.bat/idle.py
位于 python 安装根目录里的 Lib\idlelib 目录内。
将以上路径的全局路径添加到系统的 Path 环境变量中。
打开 命令行 键入 IDLE
成功识别即为配置成功。
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: Python 安装与环境配置
本文地址: https://pptw.com/jishu/4794.html