• python pip安装第三方工具包超时:pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.


     解决办法:

    1、对于比较小的库,可以延时处理

      pip --default-timeout=100 install -U pip
       pip --default-timeout=100 install 第三方库名
    2、更换安装源
    网上可以查找很多豆瓣源
    如https://pypi.tuna.tsinghua.edu.cn/simple/
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyecharts
    pip install -i https://pypi.tuna.tsinghua.edu.cn/simple 库名
    出错使用这种 :pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple/ lightgbm
    3、下载离线包
    python所有库:(https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml)
    然后通过pip install 保存路径/加上下载的文件名          进行安装
    (如pip install C:UsersHPDesktopscikit_image-0.14.1-cp37-cp37m-win32.whl)

  • 相关阅读:
    HTTPS
    RPC
    2017.4.19上午
    2017.4.18下午
    2017.4.18上午
    2017.4.17下午
    2017.4.17上午
    2017.4.14下午
    2017.4.14上午
    2017.4.13下午
  • 原文地址:https://www.cnblogs.com/ZHANG576433951/p/12744830.html
Copyright © 2020-2023  润新知