Why did Stellargraph could install when I updated pip?

1.6k Views Asked by At

I tried to install stellargraph in a Python 3.6.13 venv. It threw the following error:

enter image description here

Then I ran pip install --upgrade pip and re-ran the installation. It worked. I want to understand why upgrading pip was the game changer. The error related to TensorFlow had nothing to do with it.

1

There are 1 best solutions below

1
On

It is pretty self-explanatory from your console output. stellargraph needs tensorflow>=2.1.0 which isn't not supported by your pip version 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.