我想查看特定软件包所需的所有依赖项(在这种情况下,我使用pipdeptree),但事实证明它仅向我显示已安装软件包的依赖树。 假设我正在使用graphene:2.1.0,例如:
$ pipdeptree -p graphene
Warning!!! Possibly conflicting dependencies found:
* graphql-relay==0.5.0
- graphql-core [required: >=0.5.0,<2, installed: 2.3.1]
* social-auth-core==3.2.0
- requests [required: >=2.9.1, installed: 2.8.1]
------------------------------------------------------------------------
现在当我尝试执行 $ pipdeptree -p graphene==40.0.2
(该版本不存在)时。
Warning!!! Possibly conflicting dependencies found:
* graphql-relay==0.5.0
- graphql-core [required: >=0.5.0,<2, installed: 2.3.1]
* social-auth-core==3.2.0
- requests [required: >=2.9.1, installed: 2.8.1]
------------------------------------------------------------------------
看起来它只考虑了稳定版本,我想要的是一个与我在控制台中指定的特定版本相关的依赖树,希望我表达清楚了。