繁体   English   中英

特定 package 版本的 pip 依赖树

[英]pip dependency tree for a specific package version

我试图查看特定包所需的所有依赖项(在这种情况下,我使用的是 pipdeptree),但事实证明它只向我显示了已安装 package 的依赖关系树。 假设我正在使用石墨烯: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可以提供帮助:

$ johnnydep --verbose 0 'graphene==2.1.0'
name                            summary
------------------------------  ---------------------------------------
graphene==2.1.0                 GraphQL Framework for Python
├── aniso8601<4,>=3             A library for parsing ISO 8601 strings.
├── graphql-core<3,>=2.0        GraphQL implementation for Python
│   ├── promise<3,>=2.3         Promises/A+ implementation for Python
│   │   └── six                 Python 2 and 3 compatibility utilities
│   ├── rx<2,>=1.6              Reactive Extensions (Rx) for Python
│   └── six>=1.10.0             Python 2 and 3 compatibility utilities
├── graphql-relay<1,>=0.4.5     Relay implementation for Python
│   ├── graphql-core<2,>=0.5.0  GraphQL implementation for Python
│   │   ├── promise>=2.0        Promises/A+ implementation for Python
│   │   │   └── six             Python 2 and 3 compatibility utilities
│   │   └── six>=1.10.0         Python 2 and 3 compatibility utilities
│   ├── promise>=0.4.0          Promises/A+ implementation for Python
│   │   └── six                 Python 2 and 3 compatibility utilities
│   └── six>=1.10.0             Python 2 and 3 compatibility utilities
├── promise<3,>=2.1             Promises/A+ implementation for Python
│   └── six                     Python 2 and 3 compatibility utilities
└── six<2,>=1.10.0              Python 2 and 3 compatibility utilities

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM