Remove all installed Python packages with pip
Description
I recently had the need to get rid of all the packages I'd installed due to conflicting dependencies.
Usage
To uninstall packages you need to:
- Get a list of the packages
- Uninstall them
This works both for virtual environments as well as system-wide installations.
Get all packages
pip freeze > requirements.txt
Uninstall packages
pip uninstall -r requirements.txt -y
Snippet
N/A