What is the easiest way to remove all packages installed by pip?
I’ve found this snippet as an alternative solution. It’s a more graceful removal of libraries than remaking the virtualenv: In case you have packages installed via VCS, you need to exclude those lines and remove the packages manually (elevated from the comments below):