If you have a Mac device that's running on macOS, you would already be shipped with Python preinstalled.
To check which version you have, all you need to do is open Terminal application and run the below command to know the version.
python --version
Python 2.8.1
If you have a newer version of macOS, then you will need to make use of python3 command or else you will get the error "zsh: command not found: python".
python3 --version
Python 3.11.4
List of Python Versions shipped with Macs
macOS Sonoma (14.x): Python 3.9.6
macOS Ventura (13.x): Python 3.9.6
macOS Monterey (12.x): Python 2.1.18 and Python 3.8.9
macOS Big Sur (11.x): Python 3.8.x
macOS Catalina (10.15): Python 2.7.x and Python 3.7.x
macOS Mojave (10.14): Python 2.7.x and Python 3.7.x
macOS High Sierra (10.13): Python 2.7.x and Python 3.6.x
macOS Sierra (10.12): Python 2.7.x and Python 3.5.x
OS X El Capitan (10.11): Python 2.7.x and Python 3.5.x
OS X Yosemite (10.10): Python 2.7.x and Python 3.4.x
OS X Mavericks (10.9): Python 2.7.x and Python 3.3.x
OS X Mountain Lion (10.8): Python 2.7.x and Python 2.6.x
OS X Lion (10.7): Python 2.7.x and Python 2.6.x
OS X Snow Leopard (10.6): Python 2.6.x
![know python version macOS know python version macOS](https://code2care.org/macos/how-to-update-python-version-on-mac/images/know python version macOS.jpg)
To update the version of Python, all you need to do is visit the official website for Python: https://www.python.org/downloads/
![Download the latest version for Python on macOS Download the latest version for Python on macOS](https://code2care.org/macos/how-to-update-python-version-on-mac/images/Download the latest version for Python on macOS.jpg)
This will download the latest version of .pkg file that you can double-click to open and install using the instructions.
Using Homebrew
One other way to get the latest version of Python is by using the package manager homebrew.
Just run the below command in Terminalbrew install python
Note: You need not need to worry about the installation based on Intel/M1/M2 chip, brew will take care of it.
Facing issues? Have Questions? Post them here! I am happy to answer!
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org
- Fix: grunt: command not found (Mac/Windows)
- AppleScript Example with TextEdit
- How to copy Password of Wifi on your Mac
- Install OpenJDK Java (8/11/17) versions using brew on Mac (Intel/M1/M2)
- How to check if a port is in use using terminal [Linux or macOS]
- Cut, Copy and Paste Keyboard Shortcuts on Mac Keyboard
- [macOS] NetBeans IDE cannot be installed. Java (JRE) found on your computer but JDK XX or newer is required.
- How to Remove Widgets from macOS Sonoma 14 Desktop
- Turn off Auto-Capitalization on macOS Ventura 13
- How to Go To /usr/local/bin on Mac Terminal?
- How to Open TextEdit on Mac
- Mac: How to Open Android Studio from Terminal
- How to change the default location of Mac Screenshot
- Display Seconds in Digital Clock on Mac Menu Bar [macOS]
- How to install homebrew (brew) on M1 Mac
- Must Know Homebrew Commands for Mac/Linux Users
- Steps to Uninstall Roblox on Mac (macOS)
- How to change the System Settings Sidebar icon size Mac Ventura 13
- How to set Out Of Office (OOO) on Outlook for Mac [Updated 2023]
- Trigger Notification Center Message using Mac Terminal Command
- [fix] macOS Ventura - Python3 xcrun: error: invalid active developer path missing xcrun at CommandLineTools
- How to Install Rust Language on Mac (macOS)
- How to minimize all Windows in Mac
- Display ls command file sizes in KB (kilobytes) MB (megabytes) or GB (gigabytes) [Linux/macOS]
- How to make TextEdit the default text Editor on Mac
- How to Change Mac Date and Time using Terminal Command - MacOS
- Adding Widgets to Mac Desktop Screen on macOS Sonoma 14 - MacOS
- Task is ambiguous in root project gradle-examples. Candidates are: myTask1, myTask2 - Gradle
- Change File Created Date and Time using Mac Terminal Command - MacOS
- How to get unique values from a list in Python - Python
- Turn on Inverted Mouse Scrolling on Windows 11 on UTM on M1/M2 Mac - Windows-11
- How to make a div tag clickable - Html
- Python 3.x : How to Convert String to Bytes - Python