
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 requests module, type pip install requests
- You may see a set to confirm: Proceed (y/n)? press y and enter.
- Thats 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.
More Posts related to Python,
- How to add two float numbers in Python
- tkinter - Hello World! Program
- Convert Float to String in Python
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- How to List all Packages installed using pip [Python]
- Check if String Contains a Substring - Python
- Change label (text) color in tkinter
- Where does brew install python in macOS
- Validate email address in Python using regular expression (regex)
- How to uninstall pip Python packages
- ModuleNotFoundError: No module named qdarkstyle.colorsystem [Python]
- Python: Fix command not found pip or pip3 on zsh shell
- Check version of pip package installer for Python
- 3 Python program to add two numbers
- Calculate discount amount python code
- How to add borders to tkinter label text
- How to install Python 3.9 using brew on Mac
- Python Program To Calculate Simple Interest (SimpleInterest.py)
- Comments in Python Programming
- What is Terminal Velocity and its Formula? How to calculate it programmatically?
- How to take user input from the console in a Python program
- Install and Run Jupyter Notebook on Mac (macOS)
- Tkinter - add x and y padding to label text
- 7 Python Arithmetic Operators with Examples [Tutorial]
- Python Sleep Function/Method Code Example
More Posts:
- How to get more information about npm using brew command - HowTos
- Trigger Flow on selected Listitem from SharePoint view - create button with JSON column formatting - SharePoint
- Change the background of Tkinter label or text - Python
- Fix: Ubuntu (Linux) - bash: sudo: command not found error - Ubuntu
- Telegram down in Europe - users facing connection issues and 500 Internal Server error - News
- Encode or Decode Base64 String using Mac Terminal Command - MacOS
- Compare two text files in Notepad++ - NotepadPlusPlus
- Hyperlink in html (anchor tag) without a underline - Html