猿问

特定软件包版本的 pip 依赖树

我正在尝试查看特定包所需的所有依赖项(在这种情况下,我使用的是 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]

------------------------------------------------------------------------

似乎它只考虑了一个稳定的版本,我想要的是一个与我通过控制台提供的特定版本相关的依赖树,我希望我对此很清楚。


一只斗牛犬
浏览 118回答 1
1回答

翻阅古今

我相信johnnydep可以提供帮助:$ johnnydep --verbose 0 'graphene==2.1.0'name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; summary------------------------------&nbsp; ---------------------------------------graphene==2.1.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;GraphQL Framework for Python├── aniso8601<4,>=3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;A library for parsing ISO 8601 strings.├── graphql-core<3,>=2.0&nbsp; &nbsp; &nbsp; &nbsp; GraphQL implementation for Python│&nbsp; &nbsp;├── promise<3,>=2.3&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Promises/A+ implementation for Python│&nbsp; &nbsp;│&nbsp; &nbsp;└── six&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Python 2 and 3 compatibility utilities│&nbsp; &nbsp;├── rx<2,>=1.6&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Reactive Extensions (Rx) for Python│&nbsp; &nbsp;└── six>=1.10.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Python 2 and 3 compatibility utilities├── graphql-relay<1,>=0.4.5&nbsp; &nbsp; &nbsp;Relay implementation for Python│&nbsp; &nbsp;├── graphql-core<2,>=0.5.0&nbsp; GraphQL implementation for Python│&nbsp; &nbsp;│&nbsp; &nbsp;├── promise>=2.0&nbsp; &nbsp; &nbsp; &nbsp; Promises/A+ implementation for Python│&nbsp; &nbsp;│&nbsp; &nbsp;│&nbsp; &nbsp;└── six&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Python 2 and 3 compatibility utilities│&nbsp; &nbsp;│&nbsp; &nbsp;└── six>=1.10.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Python 2 and 3 compatibility utilities│&nbsp; &nbsp;├── promise>=0.4.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Promises/A+ implementation for Python│&nbsp; &nbsp;│&nbsp; &nbsp;└── six&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Python 2 and 3 compatibility utilities│&nbsp; &nbsp;└── six>=1.10.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Python 2 and 3 compatibility utilities├── promise<3,>=2.1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Promises/A+ implementation for Python│&nbsp; &nbsp;└── six&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Python 2 and 3 compatibility utilities└── six<2,>=1.10.0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Python 2 and 3 compatibility utilities
随时随地看视频慕课网APP

相关分类

Python
我要回答