每当你输入 python 时 winpty python.exe

2023-12-29

我正在尝试为我的Python别名~/.bashrc文件。我输入此命令是为了告诉 Git Bash 在哪里可以找到 Python 可执行文件:

python --version winpty

...从我的 [Git Bash] 中,不幸的是,我收到此错误:

MINGW64 ~
$ python --version
winpty: error: cannot start '"C:/Program Files/WindowsApps/Microsoft.DesktopAppInstaller_1.4.3161.0_x64__8wekyb3d8bbwe/AppInstallerPythonRedirector.exe" --version': Access is denied. (error 0x5)

我应该如何从 [Git Bash] 正确运行 python?

谢谢。


在 Windows 中搜索“应用程序执行别名”并确保 Appl Installer for python.exe 已关闭。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

每当你输入 python 时 winpty python.exe 的相关文章

随机推荐