How to remove all packages installed by pip with a single command?

- Andrés Cruz

En español

With a simple Python command, it is possible to uninstall all the packages that we have installed from a project or application:

pip freeze | xargs pip uninstall -y

We can use this command in a virtual environment of the venv perfectly; this solution is useful when we want to update a project with the latest dependencies.

Andrés Cruz

Develop with Laravel, Django, Flask, CodeIgniter, HTML5, CSS3, MySQL, JavaScript, Vue, Android, iOS, Flutter

Andrés Cruz In Udemy

I agree to receive announcements of interest about this Blog.

!Courses from!

10$

On Udemy

There are 2d 15:48!


Udemy

!Courses from!

4$

In Academy

View courses

!Books from!

1$

See the books
¡Become an affiliate on Gumroad!