Reputation:
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?
Upvotes: 1
Views: 4398
Reputation: 64
python --version
is the MacOS and Linux command, for windows 10 try using py --version
.
Upvotes: 3
Reputation: 113
probably environment variable isn't set up correctly
check if it is D:\python\Scripts\;D:\python\;
Upvotes: 0
Reputation: 135
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
Upvotes: 2