Last modified: Jun 18, 2025 By Alexander Williams

How to Uninstall Python Easily

Uninstalling Python is simple but requires care. This guide covers removal on Windows, macOS, and Linux.

Why Uninstall Python?

You may need to uninstall Python to upgrade, fix conflicts, or free space. Ensure you back up your projects first.

Uninstall Python on Windows

Windows users can remove Python via Settings or Control Panel. Follow these steps.

Method 1: Using Settings

Open Settings > Apps > Apps & Features. Find Python and click Uninstall.

Method 2: Using Control Panel

Go to Control Panel > Programs > Uninstall a Program. Select Python and click Uninstall.

Remove Remaining Files

Delete leftover files in C:\PythonXX (XX is version). Also, check AppData and Program Files.


# Example command to check Python version before uninstalling
python --version


# Output (if Python is installed)
Python 3.9.0

Uninstall Python on macOS

macOS has pre-installed Python. Removing it fully requires extra steps.

Method 1: Using Terminal

Run this command to remove Python installed via Homebrew.


brew uninstall python

Method 2: Manual Removal

Delete Python from /Library/Frameworks/Python.framework. Also, clean up /usr/local/bin.

Uninstall Python on Linux

Linux distros handle Python differently. Use package managers like apt or yum.

For Debian/Ubuntu

Use apt to remove Python.


sudo apt remove python3

For Fedora/CentOS

Use yum or dnf to uninstall Python.


sudo dnf remove python3

Verify Python Uninstallation

After uninstalling, verify Python is removed. Run this command.


python --version


# Output (if uninstalled correctly)
Command 'python' not found

Conclusion

Uninstalling Python is easy if you follow the right steps. Always check for leftover files. Reinstall Python if needed.