How to uninstall Python on Mac step by step

Written by

Written by Laura Burke

Laura Burke

Writer

Before you remove anything, leave one Python alone. Recent versions of macOS include a python3 command in /usr/bin that belongs to Apple's developer tools, and the Python documentation for macOS says you should never modify or delete it. Everything below is about the Python you installed yourself, and the steps depend on how you installed it: from python.org, or with a package manager such as Homebrew.

Whether you're trying to free up space, troubleshoot issues, or start fresh with a new version, uninstalling Python can be tricky because of its integration with macOS and the presence of multiple versions.

In this guide, we'll walk you through the steps to completely remove Python, ensuring no residual files are left behind.

What is Python, and reasons to remove Python from a Mac

Python is a popular programming language that's been around since its first release in 1991. Known for its simplicity and readability, it's easy to learn, versatile, and supports numerous programming styles.

The About page on python.org open in a web browser

Today, Python is used in web development, data science, AI, and lots more, but while it's useful, there are several reasons you might want to remove it from your Mac:

  • Multiple version conflicts

  • Troubleshooting

  • Freeing up space

  • Outdated versions

In the following sections, we'll show you step-by-step instructions for uninstalling Python on Mac.

How to uninstall Python on Mac with one click

Dragging Python to the Trash is tempting, but it can leave related files behind. An easy way to remove a Python version you installed yourself is CleanMyMac’s Applications module.

Before you start: Don’t remove the Python that’s part of Apple’s Command Line Tools, since other software may rely on it. In Terminal, run which -a python3 to see what’s installed and where, and back up any projects or environments you want to keep. If you installed Python using Homebrew or pyenv, use brew uninstall python or pyenv uninstall <version> instead of the steps below.

  1. Open CleanMyMac. Don’t have the app yet? Get your free CleanMyMac trial — all features are free for 7 days.
  2. Go to Applications and click Scan.
  3. When the scan finishes, click Manage My Applications and open the Uninstaller category.
  4. Find Python in the list.
  5. Select it and click Uninstall at the bottom of the window.

All apps selected in the Uninstaller module of CMM

Finally, run which python3 again. If it now points to /usr/bin/python3, that’s Apple’s own python3 shim, which should stay. If you or the installer added Python to your PATH, remove those lines from your shell profile (.zshrc or .zprofile).

If you'd rather remove Python manually, no problem, head down to the next tip.

How to uninstall Python on Mac manually

Manually removing Python is also possible, just a little more time-consuming. In fact, it's a two-part process; let's take a look.

If you installed Python with Homebrew, skip the steps below and remove it with Homebrew instead. Run brew list | grep python to see the exact name, such as [email protected] (your version number may differ), then run brew uninstall [email protected]. If Homebrew says other packages depend on it, it will refuse and list them; deal with those first rather than forcing the removal.

If you installed Python from python.org, you can remove it manually, though it takes a little more time. It’s a two-part process: remove the app, then remove the files it leaves behind.

Step one: Delete Python

  1. Open Finder > Applications.

  2. Find the Python folder for your version (for example, Python 3.13) and send it to the Trash.

  3. Empty your Trash bin.

Applications folder on Mac

Once the app is gone, it's time to tackle all of Python's associated leftover files.

Step two: Remove the Python framework

  1. Now, open Finder.

  2. Click Go from the menu bar.

  3. Choose Go to Folder, start typing /Library/Frameworks/, and double-click the Frameworks folder. Send the Python.framework folder to the Trash. If you also see a PythonT.framework folder, send it to the Trash too: Python 3.15 installs it by default for its free-threaded build.

  4. Next, remove the links the installer placed in /usr/local/bin. Open Terminal and run:

    ls -l /usr/local/bin | grep 'Library/Frameworks/Python'

    1. Each line shows a link name, an arrow, and the framework path it points to. If you have more than one Python version installed, check the version number in each path and remove only the links for the version you removed.
    2. Open /usr/local/bin with Go to Folder, move only those files to the Trash, and leave everything else in that folder alone.
    3. Empty the Trash.

Finder column view with the Library Caches folder open

As you can see, manually removing an app is a little more complex than we might think at first, but if you want to ensure all traces are removed, that's how it's done.

How to check if Python is installed on your Mac

Python 2.7 used to come with macOS, but Apple removed it in macOS Monterey 12.3. Today, macOS includes only the python3 command, which is part of Apple's developer tools (see above). Here's how to check which Python you have:

  1. Open Applications > Utilities > Terminal.

  2. Enter the command: python3 --version

  3. Press Return.

Terminal window showing python --version returning command not found

If Python is installed, you'll see information on it; if not, it'll say command not found.

How to reinstall Python on your Mac

  1. Open your browser and navigate to Python Downloads.

  2. Click “Download the latest version for macOS.”

  3. Once downloaded, open the installer package.

  4. Follow the installation instructions displayed on the screen to complete the installation. The installer adds a Python folder to Applications and puts Python itself in /Library/Frameworks.

Now, you know a couple of ways to safely and completely remove Python from your Mac.