Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
How can I remove Python from my Windows Machine?
To completely remove Python from a Windows machine, you need to uninstall it through the system settings, remove environment variables, and delete any remaining files. This guide covers the complete removal process.
Method 1: Using Windows Settings
Step 1: Open Apps & Features
Go to Start Menu ? Settings ? Apps ? Apps & features. Search for "Python" in the search box.
Step 2: Uninstall Python Versions
You'll typically see two entries for each Python version installed ?
- Python 3.x.x (64-bit) - The main Python interpreter
- Python 3.x.x Launcher - The Python launcher utility
Click on each entry and select Uninstall. Start with the main Python installation first, then remove the launcher.
Method 2: Using Control Panel
Open Control Panel ? Programs ? Programs and Features. Find Python entries in the list, right-click each one, and select Uninstall.
Remove Environment Variables
After uninstalling, remove Python from your system PATH ?
- Right-click This PC ? Properties ? Advanced system settings
- Click Environment Variables
- In System variables, find and select Path, then click Edit
- Remove any entries containing Python paths (e.g.,
C:\Python39\,C:\Python39\Scripts\) - Click OK to save changes
Delete Remaining Files and Folders
Check these common locations for remaining Python files ?
| Location | Description |
|---|---|
C:\Python3x\ |
Main Python installation directory |
C:\Users\[Username]\AppData\Local\Programs\Python\ |
User-specific Python installation |
C:\Users\[Username]\AppData\Roaming\Python\ |
Python user data and packages |
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.x\ |
Start menu shortcuts |
Delete these folders if they still exist after uninstallation.
Verify Complete Removal
To confirm Python is completely removed ?
- Open Command Prompt and type
python --version - If properly removed, you should see:
'python' is not recognized as an internal or external command - Check the Registry Editor (
regedit) for any remaining Python entries underHKEY_LOCAL_MACHINE\SOFTWARE\
Common Issues and Solutions
Issue: "Access denied" when deleting folders
Solution: Run File Explorer as administrator or take ownership of the folders.
Issue: Python still appears in PATH after removal
Solution: Restart your computer or manually edit environment variables again.
Conclusion
Complete Python removal requires uninstalling through system settings, removing environment variables, and deleting remaining files. Always verify removal by testing the python command in Command Prompt to ensure clean uninstallation.
