Pip install tensorflow getting stuck in download

My pip install of tensorflow is getting stuck downloading. It gets stuck at different places at different times. A typical output is:

Collecting tensorflow
Downloading tensorflow-2.8.0-cp310-cp310-win_amd64.whl (438.0 MB)
-------------------------- ------------- 292.0/438.0 MB 3.7 MB/s eta 0:00:40

To eliminate timeout I am adding

–default-timeout=5000

but it is not progressing at all once it gets stuck at some location. My pip is the latest as required by tesnorflow.

What am I missing?

I rebooted my machine once and retried it the next day when it worked. Not sure whether it was some kind of network / transient issue.

1 Like