Does uninstalling a package with “pip” also remove the dependent packages?

后端 未结 5 782
有刺的猬
有刺的猬 2020-12-02 04:32

When you use pip to install a package, all the required packages will also be installed with it (dependencies). Does uninstalling that package also remove the d

5条回答
  •  囚心锁ツ
    2020-12-02 05:14

    You can install and use the pip-autoremove utility to remove a package plus unused dependencies.

    # install pip-autoremove
    pip install pip-autoremove
    # remove "somepackage" plus its dependencies:
    pip-autoremove somepackage -y
    

提交回复
热议问题