Skip to content

Instantly share code, notes, and snippets.

@vlad-bezden
Last active April 5, 2019 20:35
Show Gist options
  • Save vlad-bezden/94f6bc4500f38b94a6cb955a67048235 to your computer and use it in GitHub Desktop.
Save vlad-bezden/94f6bc4500f38b94a6cb955a67048235 to your computer and use it in GitHub Desktop.
How to delete all installed python packages

To uninstall all packages in current venv

On Linux:

$ pip freeze > args | pip uninstall -y -r args | rm args

On Windows:

$ pip freeze > args | pip uninstall -y -r args | del args

-y flag autoconfirm deletion, so it will not prompt you for if you would like to delete that package -r tells to use requirements file, the name of the file in my example is args which was created by pip freeze > args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment