简体   繁体   中英

pip ReadTimeoutError while installing python packages

I am facing this error while trying to install a python package:

ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/f2/12/37c09c37d7ac2bdb6169d5b9409a8e64770a997412edcccc689115d63b97/catboost-0.16-cp36-none-manylinux1_x86_64.whl (Caused by ReadTimeoutError("HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. (read timeout=15)",))

  • My network is not behind any firewall or proxy-server.
  • Also i have tried using --default-timeout=1000 flag in pip command but sometimes it works for me and sometimes it doesn't.

I had the same error, it was fixed when I changed pip to pip3 install because I am using python3

pip install <package>

make sure it is:

pip3 install <package>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM