每当你输入 python 时 winpty python.exe

Jac*_*ack 6 python git-bash anaconda3

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

python --version winpty
Run Code Online (Sandbox Code Playgroud)

...从我的 [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)
Run Code Online (Sandbox Code Playgroud)

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

谢谢。

小智 3

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

示例截图