This tutorial is about How to check Python version on Windows, Mac and Linux. Recently I updated this tutorial and will try my best so that you understand this guide. I hope you guys like this blog, How to check Python version on Windows, Mac and Linux. If your answer is yes after reading the article, please share this article with your friends and family to support us.
Table of contents
Check How to check Python version on Windows, Mac and Linux
Python is one of the most popular programming languages. And due to its amazing community of developers, you can easily see many different versions being released quite frequently. There are currently two popular versions of Python, one is Python 2.7.x and the other is Python 3.8.x. Sometimes we need to work with python library which only support python 2.7 and sometimes we need to work with python version 3.x but we have python 2.7 installed and our library may not support the installed version of python.
In this case, it is better to check the installed version of Python before downloading the required library. Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its built-in, high-level data structures, combined with dynamic typing and dynamic binding, make it very attractive for rapid application development, as well as for use as a scripting language or glue to glue existing components together.
Python’s simple and easy-to-learn syntax emphasizes readability and thus reduces program maintenance costs. Python supports modules and packages, which promotes program modularity and code reuse. The Python interpreter and extensive standard library are freely available in source or binary form for all major platforms and can be freely distributed.
How to check the version of Python on Windows, Mac and Linux
Check Python version on Linux
Most modern Linux distributions come with Python pre-installed.
To check the installed version, open a terminal window and enter the following:
Check Python version on Windows
Most out-of-the-box Windows installations don’t come with Python pre-installed. However, it is always a good idea to check. Open Windows Powershell and enter the following:
If you have Python installed, it will report the version number. Alternatively, use the Windows search feature to see what version of Python you have, press the Windows key to start a search, and then type Python. The system will return any matching results. A match will most likely show something similar to:
EITHER,
Check Python version on MacOS
If you’re using MacOS, check the version of Python by entering the following command in the terminal:
The system will report the version.
Final remarks: How to check Python version on Windows, Mac and Linux
I hope you understand this article, How to check Python version on Windows, Mac and Linux. If your answer is no, you can ask anything via the contact forum section related to this article. And if your answer is yes, please share this article with your friends and family to give us your support.