[英]How do I get Git Bash (on Windows) to automatically connect to “winpty python.exe” upon loading?
[英]winpty python.exe whenever you enter python
我正在嘗試在 .bashrc 文件中為 Python 設置別名。 我輸入這個命令是為了告訴 Git Bash 在哪里可以找到 Python 可執行文件。
來自我的 [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)
我應該如何從 [Git Bash] 正確運行 python?
謝謝你。
在 Windows 中搜索“App execution aliases”並確保關閉 Appl Installer for python.exe。 示例截圖
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.