1

So the question is pretty short but I couldn't find the answer yet. I want to check my python version in the terminal on Windows:

python --version
Python

the same output for python3 --version, python -V and so on. What can be the problem here?

2
  • Can you please try 'py -V' or 'py --version' Commented Jul 7, 2021 at 13:49
  • That works!! Thanks! Do you know why? Commented Jul 7, 2021 at 13:50

4 Answers 4

3

python --version is the MacOS and Linux command, for windows 10 try using py --version.

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

Comments

2

Please try to use

'py --version' or 'py -V'

'Python --version' and 'Python -V' should also work.

Try going through this document - https://learn.microsoft.com/en-us/windows/python/beginners

Comments

0

Try to reinstall python, May be a corrupted installation

Comments

0

probably environment variable isn't set up correctly check if it is D:\python\Scripts\;D:\python\;

Comments