基本上,我在 Git Bash 命令行中键入 python
,然后我得到一个空白行,就好像命令行在思考……
我做了很多研究,但我似乎无法通过在命令行中输入 python 来在 Git Bash 上运行 python。
我在看这个问题: Python not working in the command line of git bash 并且有人建议输入:
winpty c:/Python34/python.exe
进入命令行,它成功了!但是,我不想一直在命令行中输入整个命令。
原文由 Scott 发布,翻译遵循 CC BY-SA 4.0 许可协议
更多细节
我有同样的问题,使用“python -i”解决了它。