我试图查看特定包所需的所有依赖项(在本例中,我使用的是pipdeptree),但结果表明,它只显示已安装包的依赖项树。假设我使用的是石墨烯: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]
------------------------------------------------------------------------
它似乎只考虑了一个稳定的版本,我想要的是一个依赖关系树,它与我通过控制台提供的特定版本相关,我希望我已经清楚了这一点
我相信johnnydep可以帮助做到这一点:
相关问题 更多 >
编程相关推荐