1
我在安裝numpy和matplotlib時遇到以下錯誤。我不知道如何解決它。python安裝numpy和matplotlib異常(使用pip)
D:\Program Files (x86)\Python\Python36-32>pip install matplotlib
Collecting matplotlib
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/matplotlib/
Downloading matplotlib-2.0.2-cp36-cp36m-win32.whl (8.7MB)
14% |████▌ | 1.2MB 33kB/s eta 0:03:46Exception:
Traceback (most recent call last):
File "d:\program files (x86)\python\python36-32\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 232, in _error_catcher
yield
File "d:\program files (x86)\python\python36-32\lib\site-packages\pip\_vendor\requests\packages\urllib3\response.py", line 314, in read
data = self._fp.read(amt)
File "d:\program files (x86)\python\python36-32\lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 60, in read
data = self.__fp.read(amt)
File "d:\program files (x86)\python\python36-32\lib\http\client.py", line 449, in read
n = self.readinto(b)
File "d:\program files (x86)\python\python36-32\lib\http\client.py", line 493, in readinto
n = self.fp.readinto(b)
File "d:\program files (x86)\python\python36-32\lib\socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "d:\program files (x86)\python\python36-32\lib\ssl.py", line 1002, in recv_into
return self.read(nbytes, buffer)
File "d:\program files (x86)\python\python36-32\lib\ssl.py", line 865, in read
return self._sslobj.read(len, buffer)
File "d:\program files (x86)\python\python36-32\lib\ssl.py", line 625, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out
我是新來的python,我該如何解決它? 任何幫助,將不勝感激!
只是下載whl二進制 – Veltro
並檢查您的互聯網速度,33kB/s是沒有太多.. – Veltro
似乎在下載過程中網絡連接超時。幾分鐘後你重試了嗎?它總是停在14%?你的網絡工作正常嗎? – ImportanceOfBeingErnest