怎么将Python添加到系统环境变量中
时间: 2024-03-28 13:40:57 浏览: 70
将Python添加到系统环境变量中,可以方便我们在命令行工具中直接运行Python命令。下面是添加Python到系统环境变量的步骤:
1. 打开“控制面板” -> “系统和安全” -> “系统” -> “高级系统设置” -> “环境变量”;
2. 在“系统变量”中找到“Path”变量,并点击“编辑”按钮;
3. 在弹出的“编辑环境变量”对话框中,点击“新建”按钮;
4. 输入Python安装路径下的“Scripts”目录路径,例如:C:\Python36\Scripts;
5. 确认所有对话框的修改并保存。
完成以上步骤后,你就可以在命令行中直接输入Python命令来运行Python程序了。
阅读全文
相关推荐
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231045053.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![pdf](https://img-home.csdnimg.cn/images/20241231044930.png)
![txt](https://img-home.csdnimg.cn/images/20241231045021.png)
![doc](https://img-home.csdnimg.cn/images/20241231044833.png)
![docx](https://img-home.csdnimg.cn/images/20241231044901.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![-](https://img-home.csdnimg.cn/images/20241231044930.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)
![zip](https://img-home.csdnimg.cn/images/20241231045053.png)