from torch._C import * ImportError: numpy.core.multiarray failed to import解决方案

 ** 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 "", line 1, in 
  File "D:\anaconda3\lib\site-packages\torch\__init__.py", line 190, in 
    from torch._C import *
ImportError: numpy.core.multiarray failed to import
>>> import 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
Traceback (most recent call last):
  File "", line 1, in 
  File "D:\anaconda3\lib\site-packages\numpy\__init__.py", line 305, in 
    _win_os_check()
  File "D:\anaconda3\lib\site-packages\numpy\__init__.py", line 302, in _win_os_check
    raise RuntimeError(msg.format(__file__)) from None
RuntimeError: The current Numpy installation ('D:\\anaconda3\\lib\\site-packages\\numpy\\__init__.py') fails to pass a sanity check due to a bug in the windows runtime. See this issue for more information: https://tinyurl.com/y3dm3h86

以上两个的解决方案不是把numpy升级到最新版,而是安装其他版本
pip install numpy==1.19.3

这个问题搁置了两天,百度误我。
还是从Stack Overflow找到的解决方案!

你可能感兴趣的:(from torch._C import * ImportError: numpy.core.multiarray failed to import解决方案)