Quick Install python related packages & avoid Read timed out

Normal use pip install software installation is very slow, it is because we are downloaded from the foreign sites in the country, we can quickly download through domestic Mirror:
For a chestnut:
I now want to download TensorFlow1.12.0 version:
pip3 install tensorflow==1.12.0

Rewrite it as:
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple/ tensorflow==1.12.0

If your speed is too slow wife still download times out, you can try:
pip3 --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple/tensorflow==1.12.0
the larger the 100 change, the more they can avoid Read timed out, but transferred to 1000 also can not download completely, in my experience, it basically should open a new path.

If you want to download the latest version, you can remove the constraints on version:
pip3 --default-timeout=100 install -i https://pypi.tuna.tsinghua.edu.cn/simple/tensorflow

Published 12 original articles · won praise 8 · views 559

Guess you like

Origin blog.csdn.net/agent_snail/article/details/104582705