Note: This post is all about checking the version of python installed on your computer and in case of windows, most of the time, a windows installation do not have python pre-installed. Now, before getting started, you should be able to access your command-line of your OS. It was created by Guido van Rossum in the late 1980s and first released in 1991. In this tutorial, we will see how to check the python version on Windows, Linux and macOS just with the help of terminal. Python is a general-purpose interpreted, object-oriented, interactive, and high-level programming language. In that case, it’s best to check the version of Python installed before downloading the required library. Sometimes you have to work with python library that only supports Python 2.7 and sometimes we have to work with Python 3.x version but we have Python 2.7 installed and we may find our library not supporting the installed version of python. ![]() There are two most popular versions of Python as of now, one is Python 2.7.x and the other is Python 3.8.x. And due to its awesome developer community, you can easily see a lot of different versions getting released quite frequently. Python is one of the most popular programming languages. But before getting started, let’s know a bit about Python. ![]() ![]() To check the Python version using the sys module, write: import sys print (sys.version) And you’ll get: 3.8.3 (default, Jul 2 2020, 17:30:36) MSC v.1916 64 bit (AMD64) To check the Python. ![]() The script will be the same for Windows, macOS, and Linux. This post is all about how to check Python version on your computer. To check which Python version is running, you can use either the sys or the platform module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |