Step-by-step guide for Mac Users
Last updated
Was this helpful?
Last updated
Was this helpful?
If you’re using a Mac, Python might already be pre-installed. However, it’s usually an older version, so it’s best to install the latest version of Python to ensure you have all the latest features. Follow these steps to install Python on your macOS system.
Open the Terminal by searching for it in Spotlight (press Cmd + Space, type “Terminal,” and press Enter).
In the Terminal, type the following command and press Enter:
If you see a version of Python 3 (e.g., Python 3.8.5
), you already have Python installed. However, it’s still a good idea to install the latest version from the official website for development purposes.
Open your web browser and go to the official Python website: .
Click on the Downloads tab and select the macOS version of Python.
Click the Download Python (version number) button to download the latest installer.
Once the installer is downloaded, open it from your Downloads folder.
Follow the prompts in the installation wizard. It will guide you through installing Python on your Mac.
Important: Make sure to install the recommended components, including pip (the Python package installer), which comes bundled with the installation.
Open the Terminal again.
To verify the installation, type the following command and press Enter:
You should see the version of Python that you installed (e.g., Python 3.10.0
).
In the Terminal, type the following command to check if pip
(the Python package installer) is installed:
With Python and pip installed, you’re ready to start programming in Python on your Mac! Next, we’ll cover setting up Visual Studio Code for Python development.
Some content generated with AI
If pip
was installed correctly, you will see a version number like pip 21.2.4
. If it’s not installed, refer to the for instructions.