我使用Windows10上安装的Anaconda3 python。
当我在git-bash中运行python --version
时,它会起作用。
$ python --version
Python 3.7.3
$ which python
/d/Programs/Anaconda3/python
但是当我运行python
时,它什么也不输出,并且在那里等待
$ python
按下时我可以输入任何内容,但是什么也没发生,只是换行了。
$ python
print(1)
注意,我的问题与Python not working in command prompt?不同,后者找不到python路径。