user5998510
user5998510

Reputation:

Python --version Windows only returns word Python

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

Answers (4)

Server.host
Server.host

Reputation: 64

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

Upvotes: 3

incop
incop

Reputation: 113

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

Upvotes: 0

MPSC
MPSC

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

Hridaya Agrawal
Hridaya Agrawal

Reputation: 325

Try to reinstall python, May be a corrupted installation

Upvotes: 0

Related Questions