Home Issue How to Uninstall Python

How to Uninstall Python

Posted: February 22, 2021

Python is one of the most popular programming languages, and it is being used by millions of developers on both Windows and macOS. To execute Python scripts, users need to install a Python interpreter, usually downloaded from Python's official website. If you are looking to uninstall the Python interpreter from your computer, then the instructions below will be of help:

Uninstalling Python on Windows

Windows users should have a very easy time when it comes to removing Python because a few steps are enough to eliminate all of the software suite's components. Head to the Start Menu -> Apps -> Apps and Features section. Once there, select 'Python' and click on 'Uninstall' to complete the task.

Uninstalling Python on macOS

Python users should be able to remove the core Python package by going to Finder -> Applications, right-clicking 'Python,' and selecting 'Move to Trash.' After this, empty the trash bin.

The only issue is that the removal on macOS may not be that smooth, and there will be many leftover components that need to be deleted manually. Open the Terminal, and type the commands below one by one, pressing 'Enter' after each entry. Please note that you will be prompted to enter your password to confirm each action:

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

 

Loading...