How to Uninstall Python

How to Uninstall Python

Learn the steps to completely uninstall Python from your system, whether you’re using Windows, macOS, or Linux.

Check Your Python Version

Before uninstalling, check your installed Python version. Open your terminal or command prompt and type python --version or python3 --version.

Uninstalling on Windows

Go to "Control Panel." Click on "Programs and Features." Find Python in the list, right-click, and select "Uninstall.

Uninstalling on macOS

Open Finder and go to "Applications." Locate the Python folder and drag it to the Trash. Remove any Python-related files from /usr/local/bin/.

Uninstalling on Linux

Open your terminal. Use the command: sudo apt-get remove python3 for Debian-based systems or sudo yum remove python3 for Red Hat-based systems.

Check for Remaining Files

After uninstallation, ensure no Python files remain on your system. Search for python and delete any leftover directories.

Learn Python From Python central

You've successfully uninstalled Python! For more tech tutorials and resources, visit Python Central.