How to Completely Uninstall Python from Windows: Step-by-Step Guide
Learn how to fully remove Python from a Windows system by following detailed steps—including using the installer’s uninstall option, Windows Settings, manual deletion of installation folders, cleaning environment variables, and clearing related AppData and pip caches—to ensure no residual files remain.
Usually when software stops working we try reinstalling, but sometimes you need to remove Python completely. This guide shows three methods to uninstall Python on Windows.
Method 1: Uninstall via the Installer
When you first installed Python you downloaded an executable installer. Double‑click the installer and choose Uninstall to remove Python.
Method 2: Uninstall through Windows Settings
Open Windows Settings → Apps → Installed apps , search for “Python”, and click Uninstall for each entry.
Method 3: Manual removal
Locate the installation directory (you can see it during uninstall or run
where pythonin Command Prompt) and delete the folder (e.g.,
C:\Python38) including subfolders such as
Scriptsand
Lib. If you chose a custom path, delete that as well.
Clear the environment variable
Pathentries that point to Python and its Scripts folder via Advanced system settings → Environment Variables .
Delete the hidden folder
%AppData%\Local\Programs\Pythonand its contents.
Optionally, clear the pip cache by deleting
%AppData%\Local\pip\Cacheif it exists.
Conclusion
After completing these steps Python is completely removed. If you only need to upgrade, you may keep the pip cache so that third‑party packages do not need to be reinstalled.
Python Programming Learning Circle
A global community of Chinese Python developers offering technical articles, columns, original video tutorials, and problem sets. Topics include web full‑stack development, web scraping, data analysis, natural language processing, image processing, machine learning, automated testing, DevOps automation, and big data.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.