Languages
[Edit]
EN

Python - how to check Python version

3 points
Created by:
Chronal
697

In this article, we would like to show you how to check used Python version.

Quick solution (run the following command):

python -V

Example output:

Python 3.10.0

Screenshot:

Python version checking under Windows.
Python version checking under Windows.

 

Alternative solutions

There are available alternative methods that lets to print Python version:

1. --version parameter

This approach is equivalent for -V.

python --version

Example output:

Python 3.10.0

2. -VV parameter

Using this approach you can print version details too.

Note: this approach may not working same way in older Pythons (it can return just version for older Pythons).

python -VV

Example output:

Python 3.10.0 (tags/v3.10.0:b494f59, Oct  4 2021, 19:00:18) [MSC v.1929 64 bit (AMD64)]

References

  1. Download Python - Homepage 
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join