How to Uninstall Python 2.7 on Mac

Python 2.7 is a legacy version of the Python programming language. This tutorial will show you how to uninstall Python 2.7 on your Mac.

Checkout this video:


Python 2.7 is the last major release in the 2.x series before 3.0. As of January 1, 2020, Python 2.7 will no longer receive bug fixes or security patches, so it’s important to uninstall Python 2.7 and upgrade to a newer version if you want to continue receiving updates. This guide will show you how to uninstall Python 2.7 on a Mac running macOS Sierra or later.

What is Python 2.7?

Python 2.7 is a programming language that was released in 2010. It is the last major version of the language before Python 3 was released. Python 2.7 is still widely used, but it is recommended that users switch to Python 3 instead.

Why Uninstall Python 2.7?

There are a few reasons why you might want to uninstall Python 2.7 from your Mac. Maybe you’re trying to install a newer version of Python, or you’re comfortable using another programming language and no longer need Python. Whatever your reason, uninstalling Python 2.7 is pretty straightforward.

How to Uninstall Python 2.7 on Mac?

To uninstall Python 2.7 on Mac, follow the instructions below:

1. Open the terminal.
2. Type in “sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7” and hit enter.
3. Type in your password when prompted and hit enter again.
4. Close the terminal window.


We hope this guide has been helpful in showing you how to uninstall Python 2.7 on your Mac. If you have any questions or comments, please feel free to reach out to us.

Scroll to Top