安装python第三方库失败 (pycharm)Read timed out

  • 安装python第三方库失败 Read timed out
    我在pycharm里添加安装第三方库,pandas, numpy 等都装上,了就是安装sklearn的时候他老是报错,网上找了一下原因,国外的网站下载速度太慢,导致超时失败

  • 解决方案
    1.更换源
    2.修改默认时间
    我采用的是第二种
    Linux(Ubuntu 16.04)平台:pip install xxx
    报错:
    raise ReadTimeoutError(self._pool, None, ‘Read timed out.’)
    pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
    解决:
    pip --default-timeout=100 install -U xxx

Windows平台:pip install xxx(命令行或者pycharm里的终端报错一样)
报错:
Traceback (most recent call last):
File “C:\Users\lenove\PycharmProjects\untitled5\venv\lib\site-packages\pip-19.0.3-py3.7.egg\pip_vendor\urllib3\response.py”, line 360, in _error_catcher
yield

socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

解决:
pip --default-timeout=100 install -U xxx

  • 4
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值