美文网首页
from torch._C import * ImportErr

from torch._C import * ImportErr

作者: 徐卜灵 | 来源:发表于2020-12-08 22:09 被阅读0次
 ** 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 "<stdin>", line 1, in <module>
  File "D:\anaconda3\lib\site-packages\torch\__init__.py", line 190, in <module>
    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 "<stdin>", line 1, in <module>
  File "D:\anaconda3\lib\site-packages\numpy\__init__.py", line 305, in <module>
    _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 * ImportErr

      本文链接:https://www.haomeiwen.com/subject/eltcgktx.html