这几天配置python的虚拟环境numpy总是回报错,保存内容如下:
** 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
ImportError: numpy.core.multiarray failed to import
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\tools\python\conda\envs\cvpr\lib\site-packages\cv2\__init__.py", line 3, in <module>
from .cv2 import *
ImportError: numpy.core.multiarray failed to import
>>> exit()
发现问题主要出现在新版本的numpy上,1.19.4版本
安装老版本的numpy即可解决问题
pip install numpy==1.18.1