pipdeptree使用

pipdeptree 是一个命令行实用程序,用于以依赖树的形式显示已安装的python包。pipdeptree可识别安装在环境中python包,它可为检测相互冲突的依赖包提供帮助。 通过pip install 安装即可

使用:

树形结构展示相关依赖

pipdeptree

检查哪些包以来于指定的包:

pipdeptree --reverse --packages xadmin

json形式展示,便于冲突定位(推荐)

pipdeptree --json-tree > test.json

文档地址https://python.ctolib.com/naiquevin-pipdeptree.html

原文地址:https://www.cnblogs.com/donghaoblogs/p/14299640.html