简体   繁体   English

Python 路径问题 Windows

[英]Python PATH Issue Windows

I keep getting the same issue with trying to pip install or run python -V.尝试 pip 安装或运行 python -V 时,我一直遇到同样的问题。 it comes up as No Python at PATH .在 PATH 中显示为 No Python I am on windows 10 operating system.我在 windows 10 操作系统上。 The solution I keep coming to is going into the Environment Variables then changing system variables and user variables.我不断提出的解决方案是进入环境变量,然后更改系统变量和用户变量。 However, it fails to work over every time and fails to change the path.但是,它每次都无法工作并且无法更改路径。 I have tried looking up the problem for the past 2 days now and have not found a solution to my problem.我已经尝试查找过去 2 天的问题,但没有找到解决问题的方法。 I think I may have changed or deleted the original Path Variable.我想我可能已经更改或删除了原始路径变量。 Unsure what I did but would love some help!!!不确定我做了什么,但希望得到一些帮助!!!

Have you installed python first?你有没有先安装python?

Go to this link: https://www.python.org/downloads/ Go 到这个链接: https://www.python.org/downloads/

Press on the Download Python button and once download, click on the.exe and follow the setup.按下载 Python 按钮,下载后,单击 .exe 并按照设置进行操作。

It should automatically add it to PATH but if it doesn't this link will help: https://geek-university.com/python/add-python-to-the-windows-path/它应该自动将其添加到 PATH 但如果没有,此链接将有所帮助: https://geek-university.com/python/add-python-to-the-windows-path/

Then restart Windows and python and pip should be installed.然后重启 Windows 和 python 和 pip 应该安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM