Table of Contents
This article will show you how to uninstall Python PIP package and dependencies on windows. For smooth growth, it’s important to keep your Python environment in good shape. You might have to get rid of packages you no longer need from time to time. This guide will show you how to get rid of Python PIP tools and the files that depend on them on Windows computers.
If you want to make more room, fix problems, or just get your project in better order, this guide will show you how. We will talk about both packages that are installed in specific project settings and packages that are installed on your computer as a whole. You’ll then have the tools you need to easily take care of your Python setup.
You can clean up your Python setup and make sure your variables are in order by following these steps. It’s all about making the process of growth go more smoothly and quickly. Get ready to make your Python setup easier to use and make sure everything works the way you want it to. With these simple steps, it will be easy how to uninstall Python PIP package and dependencies on windows, which will help you keep your projects organised and your development process smooth.
Why Uninstalling PIP Packages is Necessary
To keep your Python environment clean and running easily, you should get rid of things that aren’t needed. Some PIP (Python Package Installer) packages can get bigger over time, which can slow down your computer and take up room. You’re generally cleaning up your development space when you remove these packages. This helps you get rid of things you don’t need, which keeps your projects clean and running smoothly.
Getting rid of packages you’re not using is a lot like maintaining your work environment. As a result, you can find and fix any possible problems before they get worse. This practice keeps your system stable and makes sure that your code works. To sum up, uninstalling PIP tools is a simple but necessary action to keep your Python development environment clean and efficient. This will help you write better code and work together with others more easily.
How to uninstall Python PIP package and dependencies on windows
Check if PIP is installed

- Check if PIP is already installed. Open Command Prompt with admin rights.
- Run the following command and press Enter:
- pip –version
- If PIP is installed, the version number will be displayed.
- If PIP is not installed, it may be because you didn’t check the PIP box during Python installation
- In that case, refer to our detailed article for installation guidelines.
Add Python to the Windows path
- Look for the Python app on Windows search.
- Right-click on it and select Open file location.
- Right-click on the Python shortcut and click on Open file location again.
- The app path should appear as
- C:\Users\cy\AppData\Local\Programs\Python\Python100.
- The scripts path should appear as
- C:\Users\cy\AppData\Local\Programs\Python\Python100\Scripts.
- Make sure to replace the Python version with yours.
- Copy these two paths.
- Paste them into the Variable Value field, separating them with a semi-colon.
Uninstall individual Python package

- To uninstall PIP packages one by one, go to Windows search, type in Command Prompt right-click on it, and select Run as administrator. Now, type
- cd∖, and hit Enter.
- Now, run the command in the below format and hit Enter:
- cd C:\Users\cy\AppData\Local\Programs\Python\Python100\Scripts
- Make sure to replace the Python package version with yours.
- Now, run the below command and press Enter:
- pip uninstall package_name
- Replace the package name with the one you have installed, for example, NumPy, Pandas, Seaborn, etc.
- Then type Y to proceed with the uninstallation.
Uninstall Python PIP package
- Go to Windows search, type in Command.
- To remove all Python packages installed with PIP, run:
- pip uninstall -y -r <(pip freeze)
- Save installed packages in requirements.txt:
- pip freeze > requirements.txt
- pip uninstall -r requirements.txt (To uninstall packages one by one)
- pip uninstall -r requirements.txt -y (To delete all packages at once)
- Use xargs to uninstall all PIP packages:
- pip freeze | xargs pip uninstall -y
- For VCS-installed packages (GitLab, Github, etc.), remove them.
- Uninstall Python packages with PIP using:
- pip freeze | grep -v “^-e” | xargs pip uninstall -y
- Check uninstallation success with:
- pip list (Package not listed means successful uninstallation)
- Uninstall dependencies for removed package:
- pip autoremove
- Re-check packages before using PIP autoremove to avoid unintended removal.
Uninstall packages in the Python virtual environment
- Activate the virtual environment by navigating to the directory where it’s installed.
- To activate it, enter the following command and press the Enter key:
- venv\Scripts\activate.bat
- After activating the Python virtual environment, uninstall the package by running the command below and hitting Enter:
- pip uninstall package_name
- Once the package is uninstalled, deactivate the virtual environment with the command below and press Enter:
- deactivate
Conclusion
Finally, if you want to keep your work environment clean and organised, you should learn how to uninstall Python PIP packages and the Windows dependencies that they use. This step is very important for keeping your Python setup organised and free of tools that you don’t need. By following the steps in this guide, you can get rid of unwanted apps and the dependencies that run them, making your experience smoother.
By regularly cleaning up your surroundings, you can not only save disc space, but you can also make it less likely that different versions of packages will clash. Be careful, especially when working with important system packages, and think about using virtual environments to separate project-specific needs. Following these tips will help you create Python programmes on Windows more reliably and without any problems.
Question and Answer
Make sure that other programmes don’t need a programme before you get rid of it. If you choose -y or –yes, be careful because it deletes without asking. Check the list of things you want to delete first every time.
Certainly! To remove several Python PIP packages at once, just type ‘pip uninstall’ followed by the names of the packages you want to uninstall, separated by spaces. For instance, ‘pip uninstall package1 package2 package3.’ Replace these with the actual package names you wish to remove.
To get rid of all Python PIP packages, type “pip freeze | xargs pip uninstall -y.” It lists the packages that are added with “pip freeze” and gets rid of them with “pip uninstall -y.” Be careful, because it gets rid of all packages, even ones that rely on other packages.