Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check my python version in cmd?

Tags:

python

version

I has downloaded python in python.org, and I wanted to check my python version, so I wrote python --version in cmd, but it said just Python, without version. Is there any other way to find out python version?

like image 926
zahl Avatar asked Dec 31 '25 06:12

zahl


1 Answers

If you have installed python3 then the correct way for checking the version is

py -3 --version

You can try running this code in command prompt, anoconda prompt and microsoft power shell.

like image 150
Aravinth Meganathan Avatar answered Jan 06 '26 19:01

Aravinth Meganathan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!