当尝试使用 Git Bash 在 Windows 10 上运行 Python 3.7 时,出现以下错误:
$ python --version
bash: /c/Users/Name/AppData/Local/Microsoft/WindowsApps/python: Permission denied
该怎么办?
编辑:我通过使用 scoop 安装 python 并使用 cmder 而不是 Git Bash 解决了(或者更确切地说规避)了这个问题。
Python实际上并未安装。这是一个应该打开 Windows 商店的填充程序,但它只能在 PowerShell 或 CMD 中运行(并且仅在某些时候正确)。我建议访问 Python 网站并从那里下载并安装。
这是宣布此“功能”的博客文章:https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update/ https://devblogs.microsoft.com/python/python-in-the-windows-10-may-2019-update/
这篇超级用户文章讨论了解决方案:https://superuser.com/questions/1437590/typing-python-on-windows-10-version-1903-command-prompt-opens-microsoft-stor https://superuser.com/questions/1437590/typing-python-on-windows-10-version-1903-command-prompt-opens-microsoft-stor
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)