当前位置:   article > 正文

OSError: [WinError 126] 找不到指定的模块Errorloading“torch\lib\caffe2_nvrtc.dll“ or one of its dependencies._找不到指定的模块 torch or one of its dependencies.

找不到指定的模块 torch or one of its dependencies.

import torch

x = torch.empty(5, 3)

print(x)

报错

D:\Anaconda\anaconda3\python.exe D:/Python1自学/pythonProject/唐宇迪老师/4.基操.py

Traceback (most recent call last):

File "D:\Python1自学\pythonProject\唐宇迪老师\4.基操.py", line 1, in <module>

import torch

File "D:\Anaconda\anaconda3\lib\site-packages\torch\__init__.py", line 139, in <module>

raise err

OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\Anaconda\anaconda3\lib\site-packages\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.

Process finished with exit code 1

在线求指导,网上的方法都试过了,重装CUDA,anaconda,pytorch,都试过,还有下载VC++,都不行。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/1010595
推荐阅读
相关标签
  

闽ICP备14008679号