[英]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.