[英]How can I resolve Time Out Error when installing Tensorflow in Command Prompt
I currently have installed Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32.我目前已经在 win32 上安装了 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)]。 I also have Anaconda installed with its own python version.
我还安装了 Anaconda 及其自己的 python 版本。
I am trying to install tensorflow with below code (also tried pip install tensorflow).我正在尝试使用以下代码安装 tensorflow(也尝试了 pip 安装 tensorflow)。 I have successfully installed nltk, numpy and tflearn.
我已经成功安装了 nltk、numpy 和 tflearn。 I am now trying to install tensorflow and the following message is what I get.
我现在正在尝试安装 tensorflow,我得到以下消息。 I have trying several times over the past hour but I keep getting the same error at different points (percentage completed).
在过去的一个小时里,我尝试了好几次,但我在不同的点(完成百分比)不断收到相同的错误。
C:\Windows\system32>pip3 install --upgrade tensorflow C:\Windows\system32>pip3 install --upgrade tensorflow
Collecting tensorflow采集 tensorflow
Downloading tensorflow-2.1.0-cp36-cp36m-win_amd64.whl (355.9 MB) |██████████████████████████████ |下载 tensorflow-2.1.0-cp36-cp36m-win_amd64.whl (355.9 MB) |██████████████████████████████ | 336.2 MB 251 kB/s eta 0:01:19
336.2 MB 251 kB/s 等 0:01:19
ERROR: Exception:错误:异常:
Traceback (most recent call last):回溯(最近一次通话最后):
File.....文件.....
.... ……
socket.timeout: The read operation timed out socket.timeout:读操作超时
During handling of the above exception, another exception occurred:在处理上述异常的过程中,又出现了一个异常:
.... ……
raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out. raise ReadTimeoutError(self._pool, None, "Read timed out.") pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): 读取超时。
I discovered that issue was indeed the speed of my internet.我发现这个问题确实是我的互联网速度。 I downloaded it when the internet was much faster and it downloaded completely.
当互联网速度更快并且完全下载时,我下载了它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.