remove all packages pip listy code example
Example 1: pip3 uninstall all
pip3 freeze | xargs pip3 uninstall -y
Example 2: empty pip list
pip freeze > requirements.txt
# Remove one by one.
pip uninstall -r requirements.txt
# Remove all at once.
pip uninstall -r requirements.txt -y