我是靠谱客的博主 合适砖头,最近开发中收集的这篇文章主要介绍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 安装opencv报错 ERROR:Exception:Traceback(most recent call last)...所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

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

评论列表共有 0 条评论

立即
投稿
返回
顶部