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.

2 Answers 2

1

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

Sign up to request clarification or add additional context in comments.

Comments

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.