我试图查看特定包所需的所有依赖项(在本例中我使用 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]
------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
现在当我尝试时$ 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]
------------------------------------------------------------------------
Run Code Online (Sandbox Code Playgroud)
似乎它只考虑了稳定版本,我想要的是与我通过控制台提供的特定版本相关的依赖关系树,我希望我对此很清楚。