data = self._fp.read(amt) if not fp_closed else b"" File "C:\Users\Acer\AppData\Local\Programs\Python\Python38\lib\site-packages\pip\_vend or\cachecontrol\filewrapper.py", line 62, in read data = self.__fp.read(amt) File "C:\Users\Acer\AppData\Local\Programs\Python\Python38\l...
升级使用命令:pip3 install --upgrade pip 出现报错: raise ReadTimeoutError(self._pool, None, 'Read timed out.')pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. 网上查了一下,看起来是因为files.pythonhosted.org的网址...
Read timed out 错误多数是由于网络问题,因为官方在国外,可能由于网络问题超时。建议使用国内的镜像源:...
E:\Program Files (x86)\python\Scripts>python -m pip install --upgrade pip Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)'...
socket.timeout: The read operation timed out 超时的原因是: (1)国外的资源,下载本身比较慢,自己网络可能还是一般般的网速 (2)在cmd命令窗口输入pip , 可以看到默认的超时的时间是 15 秒 百度看别人的方法有写或者修改 pip.conf 文件的,也有用镜像的,我由于不知道pip.conf 的文件写在哪,二镜像太麻烦。
return self._sslobj.read(len, buffer) socket.timeout: The read operation timed out 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 使用python -m pip install --upgrade pip 更新升级pip的时候,因为超时出错了。
21.3.1-py3-none-any.whlWARNING:Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x043D6930>,'Connection to files.pythonhosted.org timedout. (connect ...
v = self._sslobj.read(len, buffer)socket.timeout: The read operation timed out During handling of the above exception, another exception occurred:Traceback (most recent call last):File "D:\安装\Python36-32\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(...
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.WARNING: You are using pip version 20.0.2; however, version 20.2.2 is available.You should consider upgrading via the 'C:\Python\Python37\python.exe -m pip install...
2. 百度提⽰,解决办法:python -m pip install --upgrade pip或者python -m pip install -U pip或者easy_install -U pip 但还是各种提⽰error: The read operation timed out。切换wifi,切换热点,切换wifi。 还设置了超时时间安装python -m pip install --upgrade pip。如此N遍之后,终于下载完了。 (其实...