1、安装pipdeptree

pip install pipdeptree

2、使用pipdeptree查看指定包依赖结构

pipdeptree -p xxxx包名

3、查看本机python已存在的全部包的依赖结构

pipdeptree

4、查看哪些包依赖xxxx包

pipdeptree -p xxxx包名 -r

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐