python - 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?
谢谢你。
解决方案
在 Windows 中搜索“应用程序执行别名”并确保 Python.exe 的 Appl Installer 已关闭。示例截图
推荐阅读
- tsql - 在隔离级别的上下文中锁定
- android - 如何在 Mapbox 地图上的 2 个点之间画一条直线?
- ios - 如何在 WatchOS 6 中将 Crown 输入打印到控制台
- javascript - 为什么 thingspeak 中的所有字段或提要都返回所有字段或提要而不是一两个?
- ios - 使用 if/else 语句返回 observable 不适用于 RxSwift flatMap
- java - 我需要帮助概念化我的 GUI 实现
- mongodb - 合并数组元素和去重Mongodb聚合
- java - NoClassDefFoundError - 动态加载 URLClassLoader 中加载的 Classpath 类依赖项
- html - 背景图片不显示,链接正常,选择器正常,有没有我没有意识到的干扰?
- ios - iOS 如何在广播上传扩展中实现开放主机应用程序?