Error:
Solution:
Use Image: Pip install xxxx-i https://pypi.douban.com/simple such as: PIP3 install--upgrade tensorflow-i https://pypi.douban.com/ Simple error message: Traceback (most recent call last):
File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py
", line 226, in _error_catcher
Yield
File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py
", line 301, in read
data = Self._fp.read (AMT)
File "d:\programs\python35\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py
", line, in read
data = Self.__fp.read (AMT)
File "d:\programs\python35\lib\http\client.py
", line 448, in read
n = self.readinto (b)
File "d:\programs\python35\lib\http\client.py
", line 488, in Readinto
n = self.fp.readinto (b)
File "d:\programs\python35\lib\socket.py
", line 575, in Readinto
return Self._sock.recv_into (b)
File "d:\programs\python35\lib\ssl.py
", line 929, in Recv_into
Return Self.read (nbytes, buffer)
File "d:\programs\python35\lib\ssl.py
", line 791, in read
Return Self._sslobj.read (len, buffer)
File "d:\programs\python35\lib\ssl.py
", line 575, in read
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):
File "d:\programs\python35\lib\site-packages\pip\basecommand.py
", line 209, in main
Status = Self.run (options, args)
File "d:\programs\python35\lib\site-packages\pip\commands\install.py
", line 299, in Run
Requirement_set.prepare_files (Finder)
File "d:\programs\python35\lib\site-packages\pip\req\req_set.py
", line, in Prepare_files
Ignore_dependencies=self.ignore_dependencies))
File "d:\programs\python35\lib\site-packages\pip\req\req_set.py
", line 577, in _prepare_file
Session=self.session, Hashes=hashes)
File "d:\programs\python35\lib\site-packages\pip\download.py
", line 810, in Unpack_url
Hashes=hashes
File "d:\programs\python35\lib\site-packages\pip\download.py
", line 649, in Unpack_http_url
Hashes)
File "d:\programs\python35\lib\site-packages\pip\download.py
", line 871, in _download_http_url
_download_url (RESP, link, content_file, hashes)
File "d:\programs\python35\lib\site-packages\pip\download.py
", line 595, in _download_url
Hashes.check_against_chunks (Downloaded_chunks)
File "d:\programs\python35\lib\site-packages\pip\utils\hashes.py
", line +, in Check_against_chunks
For chunk in chunks:
File "d:\programs\python35\lib\site-packages\pip\download.py
", line 563, in Written_chunks
For chunk in chunks:
File "d:\programs\python35\lib\site-packages\pip\utils\ui.py
", line 139, in ITER
For x in it:
File "d:\programs\python35\lib\site-packages\pip\download.py
", line 552, in Resp_read
Decode_content=false):
File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py
", line 344, in stream
data = Self.read (Amt=amt, decode_content=decode_content)
File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py
", line 311, in read
Flush_decoder = True
File "d:\programs\python35\lib\contextlib.py
", Line, __exit__
Self.gen.throw (type, value, Traceback)
File "d:\programs\python35\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py
", line 231, in _error_catcher
Raise Readtimeouterror (Self._pool, None, ' Read timed out. ')
Pip._vendor.requests.packages.urllib3.exceptions.readtimeouterror:httpsconnectionpool (host= ' files.pythonhosted.org
', port=443): Read timed out.
Python pip installation Error: Connecttimeouterror