简体   繁体   English

winpty python.exe 每当你输入 python

[英]winpty python.exe whenever you enter python

I am trying to alias for Python in .bashrc file.我正在尝试在 .bashrc 文件中为 Python 设置别名。 I am entering this command to tell Git Bash where to find the Python executable file.我输入这个命令是为了告诉 Git Bash 在哪里可以找到 Python 可执行文件。

"python --version winpty" from within my [Git Bash] and unfortunately, I am getting this error:来自我的 [Git Bash] 中的“python --version winpty”,不幸的是,我收到此错误:

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)

How should I run python from the [Git Bash] properly?我应该如何从 [Git Bash] 正确运行 python?

Thank you.谢谢你。

Search for "App execution aliases" in Windows and make sure Appl Installer for python.exe is turned off.在 Windows 中搜索“App execution aliases”并确保关闭 Appl Installer for python.exe。 Sample Screenshot示例截图

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

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