The default Python on OS X shouldn't be messed with as it's used by the OS itself. If your default is 2.6.1 then you must have Snow Leopard.

If you just install from the standard 3.1 disk image then you can invoke it using python3.1 from the terminal (you don't have to do any extra steps for this to work) and you can leave the plain python as 2.6.1.

Answer from Scott Griffiths on Stack Overflow
🌐
Visual Studio Code
code.visualstudio.com › docs › languages › python
Python in Visual Studio Code
November 3, 2021 - Working with Python in Visual Studio Code, using the Microsoft Python extension, is simple, fun, and productive. The extension makes VS Code an excellent Python editor, and works on any operating system with a variety of Python interpreters.
🌐
Pandas
pandas.pydata.org › docs › getting_started › install.html
Installation — pandas 3.0.2 documentation
For users that are new to Python, the easiest way to install Python, pandas, and the packages that make up the PyData stack such as SciPy, NumPy and Matplotlib is with Anaconda, a cross-platform (Linux, macOS, Windows) Python distribution for data analytics and scientific computing.
Discussions

macos - Updating Python on Mac - Stack Overflow
Ref: https://dev.to/malwarebo/how-to-set-python3-as-a-default-python-version-on-mac-4jjf ... Is there a way to upgrade python to 3.9 without brew and without downloading an installer so that I can do it right from my virtual env? More on stackoverflow.com
🌐 stackoverflow.com
macos - How do I upgrade python on Mac? - Stack Overflow
I want to upgrade my version of python on Mac but I just can figure out how to do it. Can I do: pip3 install python3 or: pip3 upgrade python3 or: pip3 install python or: pip3 upgrade python3 I tried More on stackoverflow.com
🌐 stackoverflow.com
Python Updating on macOS - Apple Community
Apple has never provided Python 3 in macOS unless via Xcode or the command-line tools for Xcode. Have you installed either of these? ... However, when I tried installing the requirements for a new python script it failed multiple times at the 'pip install requirements' phase with some error about/around wheel. ... Sorry, I missed this one. I was on 14.7.4. I guess now I’ll be on the current version because, wonderfully, the system is forcing me to upgrade ... More on discussions.apple.com
🌐 discussions.apple.com
Upgrading Python version on MacOS, any risks?
You can install your versions using Homebrew. To switch versions you can either: update the path in your .zshrc file use the brew link command (brew unlink python@3.9 && brew link python) brew doctor helps a lot if this goes wrong> brew install pyenv (a helper to manage your python versioning) Bonus tip: never use sudo unless you really know what’s going on :) More on reddit.com
🌐 r/MacOS
22
1
January 22, 2024
🌐
Python
python.org › downloads › macos
Python Releases for macOS | Python.org
Download macOS 64-bit universal2 installer · Python 3.13.8 - Oct. 7, 2025 · Download macOS 64-bit universal2 installer · Python 3.13.7 - Aug. 14, 2025 · Download macOS 64-bit universal2 installer · Python 3.13.6 - Aug. 6, 2025 · Download macOS 64-bit universal2 installer ·
🌐
4Geeks
4geeks.com › how-to › how-to-update-python-in-terminal
How to update Python in Terminal?
July 16, 2025 - 1#Linux 2sudo apt update 3sudo apt install python3.11 4 5#MacOS 6brew install python 7 8# Windows 9python -m venv --upgrade VIRTUAL-ENVIRONMENT-PATH-HERE
Find elsewhere
Top answer
1 of 6
19

In almost all cases, this is a bad idea. Changing the system Python can and quite often will break some other packages depending on the previous environment or version. Upgrading from Python 3.10 to 3.13 means quite a few things have been changed and/or removed, making such problems likely.


So, how can you use a more modern version of Python?

One way ist the way you have already gone, installing it and accessing it via python3.13.

Another way is using the deadsnakes PPA, see e.g. this answer by Hannu (but refrain from overriding your system default).


And then there are multiple ways to get access to a specific Python version within a specific project, here is a small selection:

  1. Pyenv is the classic solution for this. It allows you to download and install basically any Python version (even alpha and beta) and activate them dynamically or use them as the base for a virtual environment.
  2. UV, a upcoming Python dependency manager, can manage Python versions as well. You just have to specify the desired Python version in a .python_version file in your project root directory.
  3. Conda, another dependency manager, but not limited to Python, can also manage multiple Python versions.
2 of 6
8

A simple "clean" way to install a more recent Python3 than present in Ubuntu is the deadsnakes ppa:

Howto set the default version:
https://www.debugpoint.com/install-python-3-12-ubuntu/
... at "Use Python 3.12 as the default Python3"

The basics for installation:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update 
sudo apt install python3.12

https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa
The ppa gets updated, so a more recent one may well be present;
also ALWAYS verify the correctness of what is stated above.

🌐
Mostly Python
mostlypython.com › updating-python
Updating Python
August 7, 2025 - $ brew upgrade uv ==> Upgrading uv 0.7.12 -> 0.8.4 · Now I can install the latest version of Python: $ uv python install Installed Python 3.13.5 in 930ms + cpython-3.13.5-macos-aarch64-none (python3.13) If you don't specify a version, uv will install the latest stable release.
🌐
Apple Community
discussions.apple.com › thread › 255995318
Python Updating on macOS - Apple Community
What version of macOS do you currently have installed? Once I know that, I can get you current with Python3 3.13.2.
🌐
Mac Install Guide
mac.install.guide › python › update
How to Update Python · Mac Install Guide
You can upgrade Python installed with the Python installer by downloading the latest version from the Python website. You can download and install any version with the installer application.
🌐
Homebrew
brew.sh
Homebrew — The Missing Package Manager for macOS (or Linux)
“To install, drag this icon…” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software.
🌐
Ansible
docs.ansible.com › projects › ansible › latest › installation_guide › intro_installation.html
Installing Ansible — Ansible Community Documentation
For your control node (the machine that runs Ansible), you can use nearly any UNIX-like machine with Python installed. This includes Red Hat, Debian, Ubuntu, macOS, BSDs, and Windows under a Windows Subsystem for Linux (WSL) distribution.
🌐
Reddit
reddit.com › r/learnpython › trying to upgrade python on my mac
r/learnpython on Reddit: trying to upgrade Python on my Mac
January 27, 2023 -

Hello,

Previous to upgrade, when I run python3 --version from Terminal, I get Python 3.8.9. I then downloaded version 3.11.1 from python.org and ran the installer. I get a new folder called Python 3.11 within Applications. However, I still get Python 3.8.9 when running python3 --version from Terminal. I have tried closing and re-opening Terminal, but that doesn't change anything.

I have also tried running an app called Update Shell Profile.command that is within the Python 3.11 folder in Applications; by just double-clicking on it.

Any assistance on this would be appreciated.

Thanks,

🌐
PythonTest
pythontest.com › python › installing-python-3-14
Installing Python 3.14 on Mac or Windows | PythonTest
The easiest way to install Python 3.14 (or 3.13, 3.12, 3.11, 3.10,...). Includes descriptions for installing from both python.org and using uv.
🌐
TensorFlow
tensorflow.org › install › pip
Install TensorFlow with pip
March 12, 2026 - Note: Requires Python 3.9–3.11, and pip >= 20.3 for MacOS. ... TensorFlow requires a recent version of pip, so upgrade your pip installation to be sure you're running the latest version.
🌐
DataCamp
datacamp.com › tutorial › pip-upgrade-python
How to Upgrade Pip and Python in Windows, MacOS, and Linux | DataCamp
December 23, 2025 - To upgrade Pip using the command prompt after upgrading Python, type cmd in your search bar to open the command prompt. Then, run the following command to upgrade Pip: ... This command ensures you have the latest version of Pip installed. If you encounter permission errors, you can use this command: ... You can verify the upgrade you have done by rerunning the version check commands to confirm the upgrades. Here, we will be exploring how you can do the same upgrade on your Mac.
🌐
Python
python.org › downloads
Download Python | Python.org
For most Unix systems, you must download and compile the source code. The same source code archive can also be used to build the Windows and Mac versions, and is the starting point for ports to all other platforms.
🌐
Kanaries
docs.kanaries.net › topics › Python › how-to-upgrade-python
How to Upgrade Python on Windows, Mac, Linux, and Virtual Environments – Kanaries
August 18, 2023 - To upgrade Python on macOS, you can use the Homebrew package manager. First, install Homebrew if you haven't already.