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