-
Notifications
You must be signed in to change notification settings - Fork 2
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:
- Go to the official Python website: https://www.python.org/downloads/release/python-3100/.
- Scroll down to the "Files" section and download the macOS installer for Python 3.10 (e.g.,
python-3.10.x-macosx10.9.pkg).
- Open the downloaded
.pkgfile. - Follow the installation wizard to install Python 3.10.
-
Open your terminal.
-
Check the installed Python versions:
ls /Library/Frameworks/Python.framework/Versions/
You should see a folder named
3.10. -
Verify Python 3.10 is installed:
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 --version
This should output:
Python 3.10.x
To make Python 3.10 the default version when you run python or python3, you need to modify your PATH environment variable.
-
Open your shell configuration file:
- For
zsh(default on macOS Catalina and later):nano ~/.zshrc - For
bash:nano ~/.bash_profile
- For
-
Add the following lines to the file:
export PATH="/Library/Frameworks/Python.framework/Versions/3.10/bin:$PATH" alias python="python3" alias pip="pip3"
-
Save and exit the file:
- For
nano: PressCTRL + X, thenY, thenEnter.
- For
-
Reload the shell configuration:
- For
zsh:source ~/.zshrc
- For
bash:source ~/.bash_profile
- For
-
Verify the default Python version:
python --version
This should now output:
Python 3.10.x