pip uninstall

The pip command that removes an installed package, but not the dependencies that came with it.

In more detail

Leftover dependencies, orphans, accumulate over time. The clean way to tidy an environment is to delete it and rebuild it from requirements.txt.

Related terms

Taught in

References