Increase pip timeout
because Torch is huge (1.8GB) and can easily fail with default 15s timeout
This is a really trivial change that extends the timeout for Pip downloads from the measly 15 seconds to something much more tolerant of unstable connections. Which since Torch is huge, really helps.
Checked safety in low-bandwidth-network in gcp.
I can't find related issues with pip read time out, did you have local error with this? When time out error happens, it more likely your internet connection is broken - 1000s timeout might make you wait forever for normal cases, if it was from SSL Error.
It's about trying to download the pip packages on a mobile hotspot, the connection switches towers every 10 minutes or so and breaks the download if the timeout is too short because the connection doesn't recover quickly enough for pip to wait. Setting the timeout longer makes it possible to complete installation with launch.py.
This fix allowed me to run webui in the initial installation, without it, it's not possible to complete first run/installation.
user can set the TORCH_COMMAND to change timeout for himself setting it to 1000s for everyone is not the answer