Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags


How to uninstall Python

Educative Answers Team
svg viewer

Python is uninstalled differently in Windows and Mac.


To uninstall Python from Windows, follow these steps:

  1. Navigate to Control Panel.

  2. Click “Uninstall a program”, and a list of all the currently installed programs will display.

  3. Select the Python version that you want to uninstall, then click the “Uninstall” button above the list – this has to be done for every Python version installed on the system.


For Python 3 and above, first, perform the following steps:

  1. Go to the Finder.

  2. Click on Applications in the menu on the left.

  3. Find the Python folder with the version number you want to uninstall, right-click it, and select “Move to Trash”.

Removing additional files from the Terminal

Moving the Python application to trash will not remove Python entirely. Furthermore, a built-in Python distribution may not appear in the Applications folder. So we’ll have to use the Terminal to uninstall it manually.

First, open the Activity Monitor and close all processes related to Python in the Memory tab. One such process is the Python Launcher. Now we can proceed to the Terminal.

  1. Open the Terminal and navigate to your Library folder from your root directory:
$ (base) Username:~ cd Library

Here, you can list the current folders in your Library using the ls command. Look for a folder named Python. Remove this folder with super-user privileges:

sudo rm -rf Python

Note: The operation requires your password in order to be completed.

Additionally, three more main directories have to be handled in order to remove Python. Move back to your root user directory and perform the following commands:

sudo rm -rf “/Applications/Python”
sudo rm -rf /Library/Frameworks/Python.framework
sudo rm -rf /usr/local/bin/python

Note: We do not recommend this step for novice Mac users. The way Python files are distributed in your Library and cache may differ based on your use, and so, extra files may have to be deleted which you can search for in the Finder or manually in the terminal.


Copyright ©2022 Educative, Inc. All rights reserved

View all Courses

Keep Exploring