G0FuckThyself to [email protected] • 1 year agoHow do I remove unnecessary python packages? At global and in vnev?message-square23arrow-up119arrow-down10
arrow-up119arrow-down1message-squareHow do I remove unnecessary python packages? At global and in vnev?G0FuckThyself to [email protected] • 1 year agomessage-square23
minus-square@[email protected]linkfedilink2•1 year agoYou should be able to use pip uninstall. See this link for details:https://pip.pypa.io/en/stable/cli/pip_uninstall/ Using it in a venv will affect the venv. Using it outside the venv will affect global packages.
minus-squareG0FuckThyselfOPlink3•1 year agoI know i can use pip to uninstall packages, the problem is I don’t know which package is needed and which is not needed. I wish pip was like pacman or apt which can list orphan packages.
minus-square@coffeewithalexlink3•1 year agoSounds like you need poetry. Or at least to track your dependencies, so that you can recreate your virtual environment.
You should be able to use pip uninstall. See this link for details:https://pip.pypa.io/en/stable/cli/pip_uninstall/
Using it in a venv will affect the venv. Using it outside the venv will affect global packages.
I know i can use pip to uninstall packages, the problem is I don’t know which package is needed and which is not needed. I wish pip was like pacman or apt which can list orphan packages.
Sounds like you need poetry.
Or at least to track your dependencies, so that you can recreate your virtual environment.