首页 > 解决方案 > winpty python.exe 每当你输入 python

问题描述

我正在尝试在 .bashrc 文件中为 Python 起别名。我正在输入这个命令来告诉 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?

谢谢你。

标签: pythongit-bashanaconda3

解决方案


在 Windows 中搜索“应用程序执行别名”并确保 Python.exe 的 Appl Installer 已关闭。示例截图


推荐阅读