Do you want to check which version of Python in Your macOS has installed default with just simple terminal command?
Then you land at the right place.
We have posted the step by step guide with images and videos to check what version of Python in your macOS has available by default.
Let’s get started.
Check Python Version with macOS Terminal
First of all, open Terminal whether by searching from Spotlight Search or via Launchpad.
After opening Terminal you will get the screen just like below.
Type python in lowercase in the Terminal and hit enter as like below screenshot.
You should see output telling you which version of Python is installed and a >>> prompt where you can start entering Python commands, like this:
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 12:01:12) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
Here is the screenshot of it:
Bonus: Check Python 3 Version with Terminal
Open the Terminal and type python3 in lowercase and hit enter button.
You will get the Python 3 version details and command writing place as like below.
Python 3.6.3 (v3.6.3:2c5fed86e0, Oct 3 2017, 00:32:08) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>>
Here is the screenshot of it.
Video Guide to Check Python Version macOS.
In this video, We have shown you visual guide to check Python 2 version and Python 3 version. Watch it.
Hope you easily understand this guide and it helped you.
Let us know your opinion or questions in the comment section.
Don’t forget to share this Check Python Version in macOS guide.