在Git Bash中使用 python 运行代码时报错
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
解决办法
-
在命令前加上 winpty
winpty python
-
修改配置文件
echo "alias python='winpty python.exe'" >> ~/.bash_profile