How To Check If Python Is Installed Windows
To check what version of Python is installed on your Windows, Mac, or Linux computer, all you have to do is run a single control. We'll bear witness you how to practise that besides every bit what to practice if you have multiple Python versions installed.
RELATED: What Is Python?
How to Read the Python Versions
A Python version consists of iii values: a major version, a minor version, and a micro version. An case of a Python version is:
Python 3.x.4
In the higher up version, 3 refers to Python's major version. The second digit, which is 10, refers to Python'due south pocket-size version, and the concluding digit, 4, indicates the micro version of Python.
Python's major versions are generally not compatible with each other, but the modest ones are.
Check the Python Version on Windows
On your Windows PC where yous've installed Python, employ the PC'due south built-in PowerShell utility to check the version number.
To start, open up your "Kickoff" carte du jour and search for "Windows PowerShell" (without quotes). Then click the utility in the search results.
When PowerShell opens, blazon the following command and press Enter:
python --version
PowerShell will brandish the version of Python installed on your PC.
And that's it.
RELATED: How to Install Python on Windows
View the Python Version on Mac
On your Mac, you lot'll use the pre-installed Terminal app to view your Python version.
Launch Final by start opening Spotlight (using the Command+Space shortcut) and then searching for and clicking on "Terminal."
On the Last window, type the post-obit control and press Enter:
python --version
Your current Python version will be displayed.
RELATED: 16 Terminal Commands That Every Mac User Should Know
Checking the Python Version on Linux
To bank check the installed Python version on Linux, open a Last window (yous can often utilize the shortcut Ctrl+Alt+T), blazon the following control, and press Enter:
python --version
The terminal volition output your current Python version.
RELATED: How to Launch a Concluding Window on Ubuntu Linux
What If Your Reckoner Has Multiple Python Versions Installed?
You could have multiple Python versions installed at the aforementioned fourth dimension on your figurer. This is because some apps utilize the newer Python 3 while others still rely on Python 2.vii in club to run. In this instance, to find the version of each instance of Python, you'll employ the following commands.
To check Python 2.7's version, apply this command:
python --version
For Python 3, use the following control:
python3 --version
And you're all set.
Wondering what version of PowerShell y'all're running on your PC? It's as to find that information.
RELATED: How to Check the PowerShell Version in Windows 10
Source: https://www.howtogeek.com/796841/check-python-version/
Posted by: perrymerhade80.blogspot.com

0 Response to "How To Check If Python Is Installed Windows"
Post a Comment