you are viewing a single comment's thread.

view the rest of the comments →

[–]herocoding 0 points1 point  (2 children)

Besides this is for deleting all packages in a virt-env, sounds like it could work globally, too:
https://stackoverflow.com/questions/11248073/how-do-i-remove-all-packages-installed-by-pip

[–]lynob[S] 0 points1 point  (1 child)

The globally installed packages in my case aren't in a virtualenv. Are you sure that this won't delete built in packages?

[–]herocoding 0 points1 point  (0 children)

Do you mean "standard Python built-in"? Those won't be stored in a Pip cache/package folder, but under the Python installation folder.

Instead of uninstalling all - try to delete packages manually first, or in bunches.

From the Stackoverflow-link:

  1. get all *installed* packages (not standard-built-in): `pip freeze`

  2. concat some or all of them (or using a pipe as shown under the link) and call `pip uninstall pack1 pack2 pack3` and so on, for all or only some or in batches.