Have you installed a Python module/package using the pip command and wondering how you can remove the package, well here is how you can do that,
Uninstalling/Removing Python packages/modules using pip command
- Open Terminal if using macOS or Command Prompt (CMD) if using Windows,
- Say you want to delete the requests module, type pip install requests
- You may see a set to confirm: Proceed (y/n)? press y and enter.
- That's it! the python package is removed!
Syntax: pip uninstall package-name
Example:
C:\Users> pip uninstall requests
Found existing installation: requests 2.24.0
Uninstalling requests-2.24.0:
Would remove:
c:\users\c2c\appdata\local\packages\
pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\
localcache\local-packages\python38\site-packages\requests-2.24.0.dist-info\*
c:\users\c2c\appdata\local\packages\
pythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0\
localcache\local-packages\python38\site-packages\requests\*
Proceed (y/n)? y
Successfully uninstalled requests-2.24.0
Let's validate, try running the command again, you should see something like this,
C:\Users> pip uninstall requests
WARNING: Skipping requests as it is not installed.

Have Questions? Post them here!
- tkinter - Hello World! Program
- How to install Python Specific version (3.8, 3.9 or 3.10) using Brew
- How to install SpaCy (NLP Library) on Mac
- Python matplotlib segmentation fault: 11 macOS Big Sur
- How to uninstall pip Python packages
- 3 Ways to find if element is present in a List in Python
- How to Convert Python String to DateTime Object
- Python f-strings Formatted String Literals Syntax and Examples
- Where does brew install python in macOS
- Take input argument from command line in Python Programming
- Advanced print() Function Tutorial and Techniques for Python Developers
- How to add borders to tkinter label text
- Whats new in Python 3.10 Pre-release
- Float built-in function in Python
- List of All 35 Reserved Keywords in Python Programming Language 3.11
- How to check if Key Exists in Python Dictionary?
- Read a file line by line in Python Program
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- What is the Max and Minimum Value of int type in Python?
- What is Terminal Velocity and its Formula? How to calculate it programmatically?
- Fix: TypeError: can only concatenate str (not int) to str in Python
- How to take user input from the console in a Python program
- [Fix] TypeError: str object is not callable in Python
- 3 Python program to add two numbers
- How to delete a file using Python code example
- How to send SMS message in Android Emulator - Android
- Install Docker for Mac using Home-brew Cask - Docker
- Write JSON to file in pretty-printed Format using Java Jackson - Java
- Recommended size and resolution for SharePoint Online Site logo - SharePoint
- [Error] zsh: command not found: mvn - HowTos
- Show battery percentage on MacBook Menu Bar [Ventura 13] - MacOS
- Fix 0x80070194 Error When Opening Microsoft OneDrive File - Microsoft
- How to create Toast messages in Android? - Android