我是靠谱客的博主 合适砖头,这篇文章主要介绍python3.7 安装opencv报错 ERROR:Exception:Traceback(most recent call last)...,现在分享给大家,希望可以做个参考。

pip安装opencv-python模块,报错:

ERROR: Exception:
Traceback (most recent call last):
  File "d:program files (x86)pythonlibsite-packagespip_vendorurllib3response.py", line 425, in _error_catcher
    yield
  File "d:program files (x86)pythonlibsite-packagespip_vendorurllib3response.py", line 507, in read
    data = self._fp.read(amt) if not fp_closed else b""
  File "d:program files (x86)pythonlibsite-packagespip_vendorcachecontrolfilewrapper.py", line 62, in read
    data = self.__fp.read(amt)
  File "d:program files (x86)pythonlibhttpclient.py", line 447, in read
    n = self.readinto(b)
  File "d:program files (x86)pythonlibhttpclient.py", line 491, in readinto
    n = self.fp.readinto(b)
  File "d:program files (x86)pythonlibsocket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "d:program files (x86)pythonlibssl.py", line 1052, in recv_into
    return self.read(nbytes, buffer)
  File "d:program files (x86)pythonlibssl.py", line 911, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

解决办法:采用国内镜像下载模块
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
我这里使用的是清华大学的镜像,如果安装中途还是报错,多执行几次该命令,直到成功

最后

以上就是合适砖头最近收集整理的关于python3.7 安装opencv报错 ERROR:Exception:Traceback(most recent call last)...的全部内容,更多相关python3.7内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(108)

评论列表共有 0 条评论

立即
投稿
返回
顶部