0

I use Anaconda3 installed python on Windows10.

When I run python --version in git-bash, it works.

$ python --version
Python 3.7.3
$ which python
/d/Programs/Anaconda3/python

But when I run python, it output nothing and pending there

$ python


A image may be more clear here.
enter image description here

I can input anything, when press, but nothing happens, just a new line.

$ python

print(1)


enter image description here


Note My issue is different from Python not working in command prompt? which is cannot find the python path.

LF00
  • 27,015
  • 29
  • 156
  • 295

2 Answers2

1

Try all your commands with $ python3 ... maybe you dont have installed the python 2 version which gets normaly called by $ python ..

Th3Wh1t3WOlf
  • 53
  • 1
  • 6
0

I think here has something to do with git-bash GUI. I cannot run it in git-bash, but I can run it in windows cmd.

LF00
  • 27,015
  • 29
  • 156
  • 295