Skip to content

Manually innstall Python 3.10 (macOS)

gilpanal edited this page Oct 30, 2025 · 1 revision

To manually install and manage Python versions on macOS. Here's how to get Python 3.10 without using pyenv:


Step 1: Download Python 3.10

  1. Go to the official Python website: https://www.python.org/downloads/release/python-3100/.
  2. Scroll down to the "Files" section and download the macOS installer for Python 3.10 (e.g., python-3.10.x-macosx10.9.pkg).

Step 2: Install Python 3.10

  1. Open the downloaded .pkg file.
  2. Follow the installation wizard to install Python 3.10.

Step 3: Verify the Installation

  1. Open your terminal.

  2. Check the installed Python versions:

    ls /Library/Frameworks/Python.framework/Versions/

    You should see a folder named 3.10.

  3. Verify Python 3.10 is installed:

    /Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --version

    This should output:

    Python 3.10.x
    

Step 4: Set Python 3.10 as the Default Version

To make Python 3.10 the default version when you run python or python3, you need to modify your PATH environment variable.

  1. Open your shell configuration file:

    • For zsh (default on macOS Catalina and later):
      nano ~/.zshrc
    • For bash:
      nano ~/.bash_profile
  2. Add the following lines to the file:

    export PATH="/Library/Frameworks/Python.framework/Versions/3.10/bin:$PATH"
    alias python="python3"
    alias pip="pip3"
  3. Save and exit the file:

    • For nano: Press CTRL + X, then Y, then Enter.
  4. Reload the shell configuration:

    • For zsh:
      source ~/.zshrc
    • For bash:
      source ~/.bash_profile
  5. Verify the default Python version:

    python --version

    This should now output:

    Python 3.10.x
    

Clone this wiki locally