[Python] How can I remove unused packages from virtualenv?

Discussão em 'Python' iniciado por Stack, Maio 29, 2025.

  1. Stack

    Stack Membro Participativo

    How can I keep track of the packages when I install them using pip inside a virtualenv?

    It seems like a mess now; if I install package A, it automatically install its dependancies; B, C and D. Then I decide to use package N instead which installs its dependancies as well.

    Now when I remove package A, its dependancies are not automatically removed.

    How I can keep my virtualenv clean? Is there a tool to check for unused packages and remove them?

    Continue reading...

Compartilhe esta Página