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.

asked Nov 6, 2019 at 12:22

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 ..

answered Nov 6, 2019 at 12:42
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.

answered Nov 20, 2019 at 1:45

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.