求大神解决python这里这个pip老是安装错误

求问大神
这里老是报错怎么解决?
C:\Users\我自己>pip install opencv-python
Collecting opencv-python
Downloading https://files.pythonhosted.org/packages/5a/af/dabae171f885ec4d9b2fe6aaf74c1d50a8d32106d840b9fb8eb0095a578d/opencv_python-4.2.0.32-cp37-cp37m-win_amd64.whl (33.0MB)
0% |▏ | 143kB 1.3kB/s eta 6:46:55Exception:
Traceback (most recent call last):
File “e:\python3.7\lib\site-packages\pip_vendor\urllib3\response.py”, line 302, in _error_catcher
yield
File “e:\python3.7\lib\site-packages\pip_vendor\urllib3\response.py”, line 384, in read
data = self._fp.read(amt)
File “e:\python3.7\lib\site-packages\pip_vendor\cachecontrol\filewrapper.py”, line 60, in read
data = self.__fp.read(amt)
File “e:\python3.7\lib\http\client.py”, line 447, in read
n = self.readinto(b)
File “e:\python3.7\lib\http\client.py”, line 491, in readinto
n = self.fp.readinto(b)
File “e:\python3.7\lib\socket.py”, line 589, in readinto
return self._sock.recv_into(b)
File “e:\python3.7\lib\ssl.py”, line 1049, in recv_into
return self.read(nbytes, buffer)
File “e:\python3.7\lib\ssl.py”, line 908, in read
return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “e:\python3.7\lib\site-packages\pip_internal\basecommand.py”, line 228, in main
status = self.run(options, args)
File “e:\python3.7\lib\site-packages\pip_internal\commands\install.py”, line 291, in run
resolver.resolve(requirement_set)
File “e:\python3.7\lib\site-packages\pip_internal\resolve.py”, line 103, in resolve
self._resolve_one(requirement_set, req)
File “e:\python3.7\lib\site-packages\pip_internal\resolve.py”, line 257, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File “e:\python3.7\lib\site-packages\pip_internal\resolve.py”, line 210, in _get_abstract_dist_for
self.require_hashes
File “e:\python3.7\lib\site-packages\pip_internal\operations\prepare.py”, line 310, in prepare_linked_requirement
progress_bar=self.progress_bar
File “e:\python3.7\lib\site-packages\pip_internal\download.py”, line 837, in unpack_url
progress_bar=progress_bar
File “e:\python3.7\lib\site-packages\pip_internal\download.py”, line 674, in unpack_http_url
progress_bar)
File “e:\python3.7\lib\site-packages\pip_internal\download.py”, line 898, in _download_http_url
_download_url(resp, link, content_file, hashes, progress_bar)
File “e:\python3.7\lib\site-packages\pip_internal\download.py”, line 618, in _download_url
hashes.check_against_chunks(downloaded_chunks)
File “e:\python3.7\lib\site-packages\pip_internal\utils\hashes.py”, line 48, in check_against_chunks
for chunk in chunks:
File “e:\python3.7\lib\site-packages\pip_internal\download.py”, line 586, in written_chunks
for chunk in chunks:
File “e:\python3.7\lib\site-packages\pip_internal\utils\ui.py”, line 159, in iter
for x in it:
File “e:\python3.7\lib\site-packages\pip_internal\download.py”, line 575, in resp_read
decode_content=False):
File “e:\python3.7\lib\site-packages\pip_vendor\urllib3\response.py”, line 436, in stream
data = self.read(amt=amt, decode_content=decode_content)
File “e:\python3.7\lib\site-packages\pip_vendor\urllib3\response.py”, line 401, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File “e:\python3.7\lib\contextlib.py”, line 130, in exit
self.gen.throw(type, value, traceback)
File “e:\python3.7\lib\site-packages\pip_vendor\urllib3\response.py”, line 307, in _error_catcher
raise ReadTimeoutError(self._pool, None, ‘Read timed out.’)
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443): Read timed out.
You are using pip version 10.0.1, however version 20.0.2 is available.
You should consider upgrading via the ‘python -m pip install --upgrade pip’ command.在这里插入图片描述每次都提醒这个 然后我按照这上面要求做就出现那一段长的文字错误

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值