【发布时间】:2021-03-08 05:15:19
【问题描述】:
我在 Windows 10 中遇到 OpenCV 问题。每当我尝试导入 OpenCV 时,都会出现以下错误。
import cv2
** On entry to DGEBAL parameter number 3 had an illegal value
** On entry to DGEHRD parameter number 2 had an illegal value
** On entry to DORGHR DORGQR parameter number 2 had an illegal value
** On entry to DHSEQR parameter number 4 had an illegal value
Traceback (most recent call last):
File "C:\Users\Krishhnandu\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 305, in <module>
_win_os_check()
File "C:\Users\Krishhnandu\AppData\Roaming\Python\Python39\site-packages\numpy\__init__.py", line 302, in _win_os_check
raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('C:\\Users\\Krishhnandu\\AppData\\Roaming\\Python\\Python39\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Krishhnandu\AppData\Local\Programs\Python\Python39\lib\site-packages\cv2\__init__.py", line 5, in <module>
from .cv2 import *
ImportError: numpy.core.multiarray failed to import
任何帮助将不胜感激。谢谢。
【问题讨论】:
-
尝试将python降级到3.8版。
标签: python numpy opencv opencv3.0