是否使用"pip"卸载软件包?还删除依赖包? [英] Does uninstalling a package with "pip" also remove the dependent packages?

查看:453
本文介绍了是否使用"pip"卸载软件包?还删除依赖包?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用pip安装软件包时,所有必需的软件包也会随之安装(依赖关系).卸载该软件包还会删除相关软件包吗?

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 dependent packages?

推荐答案

不,它不会卸载依赖包:

No, it doesn't uninstall the dependencies packages:

$ pip install specloud
$ pip freeze

figleaf == 0.6.1
鼻子== 1.1.2
皮诺奇== 0.3
specloud == 0.4.5

figleaf==0.6.1
nose==1.1.2
pinocchio==0.3
specloud==0.4.5

$ pip uninstall specloud
$ pip freeze

figleaf == 0.6.1
鼻子== 1.1.2
匹诺曹== 0.3

figleaf==0.6.1
nose==1.1.2
pinocchio==0.3

您会看到所有软件包仍然存在,但specloud软件包本身却没有.

As you can see all the packages are still there but not the specloud package itself.

这篇关于是否使用"pip"卸载软件包?还删除依赖包?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆