2017-09-08 2 views
0

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 335, in run
wb.build(autobuilding=True)
File "/usr/local/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files ignore_dependencies=self.ignore_dependencies))
File "/usr/local/lib/python2.7/dist-packages/pip/req/req_set.py", line 620, in _prepare_file session=self.session, hashes=hashes)
File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 821, in unpack_url hashes=hashes
File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 659, in unpack_http_url hashes)
File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 882, in _download_http_url _download_url(resp, link, content_file, hashes)
File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 603, in _download_url hashes.check_against_chunks(downloaded_chunks)
File "/usr/local/lib/python2.7/dist-packages/pip/utils/hashes.py", line 46, in check_against_chunks
for chunk in chunks:
File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 571, in written_chunks for chunk in chunks:
File "/usr/local/lib/python2.7/dist-packages/pip/utils/ui.py", line 139, in iter
for x in it:
File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 560, in resp_read decode_content=False):
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 357, in stream
data = self.read(amt=amt, decode_content=decode_content)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 324, in read
flush_decoder = True
File "/usr/lib/python2.7/contextlib.py", line 35, in exit self.gen.throw(type, value, traceback)
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/response.py", line 246, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out.über pip installieren tensorflow aber nicht nur als

[Das Bild Beschreibung des Problems] folgt

https://i.stack.imgur.com/iqxVu.png

+1

Die Fehlermeldung sagt Ihr Computer eine schlechte Verbindung hat pypi.python.org. – DyZ

Antwort

0

Sie auch Rad-Pakete mit versuchen können, zu installieren. Die Wheel-Pakete hängen von der Art des Betriebssystems, der Python-Version und davon ab, ob Sie mit CPU/GPU-Unterstützung installieren möchten. Aktualisieren Sie auch Protobuf, bevor Sie Tensorflow installieren.

Bitte eine Liste von Paketen finden Sie hier: https://www.tensorflow.org/install/install_linux#the_url_of_the_tensorflow_python_package

Anschließend können Sie diesen Befehl:

$ sudo pip install --upgrade <TF wheel package URL> - For Python 2.7 
$ sudo pip3 install --upgrade <TF wheel package URL> - For Python 3.x 

Tensorflow Website hat einige Details auf einige gemeinsame Probleme bei der Installation. Sie können diese auch betrachten, nur für den Fall.

https://www.tensorflow.org/install/install_linux#common_installation_problems

1

Ich löste es, indem Sie den Befehl wie folgt ändern:

pip --default-timeout=100 install THEPACKAGENAME  
Verwandte Themen