Last modified: Jun 18, 2025 By Alexander Williams
How to Uninstall pip - Quick Guide
Pip is a package manager for Python. It helps install and manage libraries. Sometimes, you may need to uninstall it. This guide explains how.
Table Of Contents
Why Uninstall pip?
You might need to uninstall pip to fix issues. Or to reinstall a fresh version. It's rare but sometimes necessary.
Before uninstalling, check if pip is installed. Use this command in your terminal:
pip --version
If pip is installed, you'll see the version. If not, you'll get an error.
Uninstalling pip on Windows
On Windows, use the command prompt. Run it as administrator. Then type:
python -m pip uninstall pip
Confirm the uninstall when prompted. Pip will be removed.
Uninstalling pip on macOS/Linux
On macOS or Linux, use the terminal. The command is similar:
python -m pip uninstall pip
You may need to use python3 instead of python. This depends on your setup.
Alternative Uninstall Methods
If the above fails, try these methods. First, use pip to uninstall itself:
pip uninstall pip
Second, manually delete pip files. Locate Python's script folder. Delete pip-related files.
Reinstalling pip After Uninstall
You may want to reinstall pip later. Use the official method:
python -m ensurepip --upgrade
Or download get-pip.py from the official site. Then run it with Python.
Troubleshooting pip Uninstall
Sometimes uninstall fails. Common issues include permission errors. Run commands as admin or use sudo on Linux/macOS.
If pip is corrupted, consider uninstalling Python completely. Then reinstall everything fresh.
Checking pip Uninstall Success
After uninstalling, verify it's gone. Run:
pip --version
You should see a "command not found" error. This means pip was removed successfully.
Conclusion
Uninstalling pip is straightforward. Use the correct command for your OS. Always verify the uninstall was successful.
Remember, you can reinstall pip anytime. For more Python tips, check our Python uninstall guide.