当前位置:   article > 正文

OSError: [WinError 126] 找不到指定的模块---caffe2_detectron_ops_gpu.dll_error loading "c: yc zkj ailltorchlliblcaffe2 dete

error loading "c: yc zkj ailltorchlliblcaffe2 detectron ops gpu.dl1"or one o

代码复现记录:

问题:OSError: [WinError 126] 找不到指定的模块。 Error loading "C:\Anaconda\Anaconda3\envs\TIN\lib\site-packages\torch\lib\caffe2_detectron_ops_gpu.dll" or one of its dependencies.

在搜索很多关于无法查找到caffe2_detectron_ops_gpu.dll相关问题时,有的解决方案是下载Visual C++ Redistributable运行库,有的是因为版本不匹配需要重新安装相关版本。

经过实验都没有正确运行,但是偶然发现一位大佬的解决方案,豁然开朗。原文是【Pytorch的坑】OSError: [WinError 126] 找不到指定的模块caffe2_detectron_ops_gpu.dll” or one of its dependencies

下面是解决方案

conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

 还有一种

conda install intel-openmp

感谢大佬,还有帮助我的朋友!!! 

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

闽ICP备14008679号