Uninstall all pip packages from environment

  1. Knowledge Base
  2. Programming
  3. Uninstall all pip packages from environment





Generate a text file of all the pip packages currently installed:
pip freeze > removal_requirements_list.txt

Remove the listed modules
pip uninstall -r removal_requirements_list.txt -y

Confirm removal by viewing installed packages:
pip list

Leave a Reply

Your email address will not be published. Required fields are marked *