简体   繁体   English

Python 在路径中,但仍未在 Windows 10 中打开 [python]

[英]Python is in path, but still not opening in Windows 10 [python]

I've seen all the posts on the topic, so please don't point me to another post.我已经看过有关该主题的所有帖子,因此请不要将我指向其他帖子。 I've tried them all.我都试过了。

I editted the system variables "path" to include the directory to where python was installed.我编辑了系统变量“路径”以包含安装 python 的目录。

Terminal Screenshot终端截图

As you can see, it's in the path.如您所见,它在路径中。 Yet when I type python in the command prompt, it does not recognize it.然而,当我在命令提示符下键入python时,它无法识别它。 I've refreshed the command prompt and even restarted the computer.我刷新了命令提示符,甚至重新启动了计算机。 What am I doing wrong?我究竟做错了什么?

EDIT编辑

Screenshot with possible missing \\可能缺少 \\ 的屏幕截图

Screenshot with \\ not added to fresh command prompt.带有 \\ 的屏幕截图未添加到新的命令提示符中。

I think there is a \\ missing in the end of the path of python directory.我认为在python目录的路径末尾缺少一个\\。 Could you please fix it and try to run it again?你能修复它并尝试再次运行它吗?

For anybody else currently having this issue, I fixed it for myself somehow.对于目前遇到此问题的其他人,我以某种方式为自己修复了它。 I was unable to get it running for some reason when I downloaded directly from Python.当我直接从 Python 下载时,由于某种原因无法运行它。 Unfortunately, I do not have a MAC and cannot help relaying info for that area, but I will say I had the exact same issue and it is resolved.不幸的是,我没有 MAC 并且无法帮助转发该区域的信息,但我会说我遇到了完全相同的问题并且已解决。 For myself, I don't think I had some outside factor from a script source messing with my install...but maybe since I had a couple downloaded.对于我自己,我不认为我有一些来自脚本源的外部因素干扰了我的安装......但也许因为我下载了几个。 Yet, what fixed this was un-installing the original install from Python and then re-installing it through the Windows app store instead.然而,解决这个问题的是从 Python 卸载原始安装,然后通过 Windows 应用商店重新安装它。 After that, I was able to not only run it, but have it recognized in my command promp (which wasn't happening prior).在那之后,我不仅能够运行它,而且能够在我的命令提示符中识别它(之前没有发生过)。 It works smoothly now, so if anybody using PC has a similar issue this year, try doing that.它现在运行得很顺利,所以如果今年使用 PC 的人有类似的问题,请尝试这样做。

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

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