pipdeptree
是一个命令行实用程序,用于以依赖树的形式显示已安装的python包。pipdeptree可识别安装在环境中python包,它可为检测相互冲突的依赖包提供帮助。 通过pip install 安装即可
使用:
树形结构展示相关依赖
pipdeptree
![](https://img-blog.csdnimg.cn/img_convert/39b024d12ba41f3d86cafb180027a0c7.png)
检查哪些包以来于指定的包:
pipdeptree --reverse --packages xadmin
![](https://img-blog.csdnimg.cn/img_convert/2de2e88af5f56144ea763fa74f26e6f7.png)
json形式展示,便于冲突定位(推荐)
pipdeptree --json-tree > test.json
![](https://img-blog.csdnimg.cn/img_convert/072533e8d478c7f799a898b07337f256.png)
pipdeptree
是一个命令行实用程序,用于以依赖树的形式显示已安装的python包。pipdeptree可识别安装在环境中python包,它可为检测相互冲突的依赖包提供帮助。 通过pip install 安装即可
pipdeptree
pipdeptree --reverse --packages xadmin
pipdeptree --json-tree > test.json