已解决Traceback (most recent call last): File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 360, in _error_catcher yield
文章目录
报错问题解决方法福利报错问题
之前在工作中遇到过这个坑,记录一下问题以及解决方法,不一定针对所有情况都能用,但是可以供大家参考。
问题描述如下:
通过默认镜像安装,下载过程中可能会报错,下载安装失败
Traceback (most recent call last):File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 360, in _error_catcheryieldFile “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 442, in readdata = self._fp.read(amt)File “E:\Anaconda3\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py”, line 62, in readdata = self.__fp.read(amt)File “E:\Anaconda3\lib\http\client.py”, line 447, in readn = self.readinto(b)File “E:\Anaconda3\lib\http\client.py”, line 491, in readinton = self.fp.readinto(b)File “E:\Anaconda3\lib\socket.py”, line 589, in readintoreturn self._sock.recv_into(b)File “E:\Anaconda3\lib\ssl.py”, line 1052, in recv_intoreturn self.read(nbytes, buffer)File “E:\Anaconda3\lib\ssl.py”, line 911, in readreturn self._sslobj.read(len, buffer)socket.timeout: The read operation timed outDuring handling of the above exception, another exception occurred:Traceback (most recent call last):File “E:\Anaconda3\lib\site-packages\pip_internal\cli\base_command.py”, line 179, in mainstatus = self.run(options, args)File “E:\Anaconda3\lib\site-packages\pip_internal\commands\install.py”, line 315, in runresolver.resolve(requirement_set)File “E:\Anaconda3\lib\site-packages\pip_internal\resolve.py”, line 131, in resolveself._resolve_one(requirement_set, req)File “E:\Anaconda3\lib\site-packages\pip_internal\resolve.py”, line 294, in _resolve_oneabstract_dist = self._get_abstract_dist_for(req_to_install)File “E:\Anaconda3\lib\site-packages\pip_internal\resolve.py”, line 242, in _get_abstract_dist_forself.require_hashesFile “E:\Anaconda3\lib\site-packages\pip_internal\operations\prepare.py”, line 334, in prepare_linked_requirementprogress_bar=self.progress_barFile “E:\Anaconda3\lib\site-packages\pip_internal\download.py”, line 878, in unpack_urlprogress_bar=progress_barFile “E:\Anaconda3\lib\site-packages\pip_internal\download.py”, line 702, in unpack_http_urlprogress_bar)File “E:\Anaconda3\lib\site-packages\pip_internal\download.py”, line 946, in _download_http_url_download_url(resp, link, content_file, hashes, progress_bar)File “E:\Anaconda3\lib\site-packages\pip_internal\download.py”, line 639, in _download_urlhashes.check_against_chunks(downloaded_chunks)File “E:\Anaconda3\lib\site-packages\pip_internal\utils\hashes.py”, line 62, in check_against_chunksfor chunk in chunks:File “E:\Anaconda3\lib\site-packages\pip_internal\download.py”, line 607, in written_chunksfor chunk in chunks:File “E:\Anaconda3\lib\site-packages\pip_internal\utils\ui.py”, line 159, in iterfor x in it:File “E:\Anaconda3\lib\site-packages\pip_internal\download.py”, line 596, in resp_readdecode_content=False):File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 494, in streamdata = self.read(amt=amt, decode_content=decode_content)File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 459, in readraise IncompleteRead(self._fp_bytes_read, self.length_remaining)File “E:\Anaconda3\lib\contextlib.py”, line 130, in exitself.gen.throw(type, value, traceback)File “E:\Anaconda3\lib\site-packages\pip_vendor\urllib3\response.py”, line 365, in _error_catcherraise ReadTimeoutError(self._pool, None, ‘Read timed out.’)pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘’, port=443): Read timed out.
解决方法
解决方法如下
一般可以考虑更换镜像源
pip install tensorflow -i /simple
福利
每周会送6本技术书籍包邮到家
由于博主时间精力有限,每天私信人数太多,没办法每个粉丝都及时回复
大家可以进社区裙或者添加博主微信
点击下方链接即可
/6kInJ