草庐IT

pipdeptree

全部标签

python - 如何在不安装的情况下列出 python 库的依赖项?

这个问题在这里已经有了答案:Isthereawaytolistpipdependencies/requirements?(10个答案)关闭2年前。有没有办法在不先安装给定python包的情况下获取依赖项列表?我目前可以获得需求列表,但它需要安装软件包。例如,我可以使用pip来显​​示基本的需求信息,但它不包括版本信息:$pipshowpytestName:pytestVersion:3.0.6...Requires:colorama,setuptools,py我试过一个名为pipdeptree的库这包括更好的需求输出,但它也需要安装包$pipdeptree-ppytestpytest=

python - 如何在不安装的情况下列出 python 库的依赖项?

这个问题在这里已经有了答案:Isthereawaytolistpipdependencies/requirements?(10个答案)关闭2年前。有没有办法在不先安装给定python包的情况下获取依赖项列表?我目前可以获得需求列表,但它需要安装软件包。例如,我可以使用pip来显​​示基本的需求信息,但它不包括版本信息:$pipshowpytestName:pytestVersion:3.0.6...Requires:colorama,setuptools,py我试过一个名为pipdeptree的库这包括更好的需求输出,但它也需要安装包$pipdeptree-ppytestpytest=