简体   繁体   English

为什么我更新 pip 时可以安装 Stellargraph?

[英]Why did Stellargraph could install when I updated pip?

I tried to install stellargraph in a Python 3.6.13 venv.我试图在 Python 3.6.13 venv 中安装stellargraph It threw the following error:它抛出了以下错误:

在此处输入图像描述

Then I ran pip install --upgrade pip and re-ran the installation.然后我运行pip install --upgrade pip并重新运行安装。 It worked.有效。 I want to understand why upgrading pip was the game changer.我想了解为什么升级 pip 会改变游戏规则。 The error related to TensorFlow had nothing to do with it.与 TensorFlow 相关的错误与此无关。

It is pretty self-explanatory from your console output.从您的控制台 output 来看,这是不言自明的。 stellargraph needs tensorflow>=2.1.0 which isn't not supported by your pip version 18.1 . stellargraph需要tensorflow>=2.1.0您的 pip 版本18.1不支持。

So when you updated pip to 21.0.1 , it could find a successful distribution of tensorflow (> 2.1.0 ) and could therefore install stellargraph in the correct manner.因此,当您将pip更新为21.0.1时,它可以找到tensorflow (> 2.1.0 ) 的成功分发,因此可以以正确的方式安装stellargraph

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

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