Last modified: Jun 21, 2025 By Alexander Williams

How to Uninstall Requests in Python

The Requests library is a popular HTTP client for Python. Sometimes, you may need to uninstall it. This guide explains how.

Why Uninstall Requests?

You might need to uninstall Requests to fix conflicts, update the package, or free up space. It's a simple process.

Check if Requests is Installed

First, verify if Requests is installed. Run this command in your terminal:


pip show requests

If installed, you'll see package details. If not, you'll get a "not found" message.

Uninstall Requests Using Pip

Use the pip uninstall command to remove Requests:


pip uninstall requests

Confirm the action by typing 'y' when prompted. Requests will be removed.

Uninstall Requests in a Virtual Environment

If using a virtual environment, activate it first:


source venv/bin/activate  # Linux/Mac
venv\Scripts\activate    # Windows

Then run the uninstall command as shown above.

Verify Uninstallation

Check if Requests was successfully removed:


pip list | grep requests  # Linux/Mac
pip list | findstr requests  # Windows

No output means Requests is uninstalled.

Alternative Uninstall Methods

If pip fails, try these methods:

Using Python -m Flag

Run this command:


python -m pip uninstall requests

Manual Removal

Locate the package and delete it manually. Check these paths:


# Common installation locations
/usr/local/lib/pythonX.Y/site-packages/  # Linux/Mac
C:\PythonXY\Lib\site-packages\           # Windows

Reinstall Requests if Needed

To reinstall Requests later, use:


pip install requests

Troubleshooting

If you encounter issues:

1. Try with --user flag if you lack permissions

2. Use sudo on Linux/Mac (with caution)

3. Check for multiple Python versions

For similar guides, see How to Uninstall Flask in Python or How to Uninstall Django in Python.

Conclusion

Uninstalling Requests in Python is straightforward. Use pip uninstall and verify removal. For other packages, the process is similar. Need to remove other libraries? Check our guide on How to Uninstall FastAPI in Python.