I tried to install stellargraph in a Python 3.6.13 venv. It threw the following error:
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.

It is pretty self-explanatory from your console output.
stellargraphneedstensorflow>=2.1.0which isn't not supported by your pip version18.1.So when you updated
pipto21.0.1, it could find a successful distribution oftensorflow(>2.1.0) and could therefore installstellargraphin the correct manner.