How to solve ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443) with pip?

前端 未结 3 1785
无人及你
无人及你 2020-11-27 12:00

I recently need to install some packages

pip install future
pip install scikit-learn
pip install numpy
pip install scipy

I also tried by wr

相关标签:
3条回答
  • 2020-11-27 12:15

    Yaayy ! I have found the answer. Just use --default-timeout=100 parameter with the install. e.g

    sudo pip install --default-timeout=100 future
    
    0 讨论(0)
  • 2020-11-27 12:15

    They are two ways to handlie this issue.

    First method:

    sudo pip install --default-timeout=100 future

    Second one: pip install --default-timeout=100 future.

    Note: If you are not superuser of your machine, sudo pip command, will not work. (Its happened with me.)

    0 讨论(0)
  • 2020-11-27 12:20

    sudo pip install --default-timeout=100 future

    or alternatively

    export PIP_DEFAULT_TIMEOUT=100 worked for me on mac osx

    0 讨论(0)
提交回复
热议问题