
OSError: [WinError 127] 找不到指定的程序。 caffe2_detectron_ops.dll“ or one of its dependencies.
Dependencies
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
项目地址:https://gitcode.com/gh_mirrors/de/Dependencies

·
先说一下出现的问题:
OSError: [WinError 127] 找不到指定的程序。 Error loading "C:\Users\10334\AppData\Local\Programs\Python\Python38\lib\site-packages\torch\lib\caffe2_detectron_ops.dll" or one of its dependencies.
其实就是pytorch出现问题了。
为什么会出现问题呢?
之前做其他项目的时候安装新的包(torchtext)了,系统自动把原来的torch包给删除了,这才导致出现的问题。
解决办法:
重新安装原来版本的torch。
但是有一个更简单粗暴的方法:直接删文件,哪里报错删哪里;
按照给出的路径找到caffe2_detectron_ops.dll,删!
删完再运行,发现还是报错。
但是,报的不是原来文件的错:
老办法,找到caffe2_module_test_dynamic.dll删!
删完再运行,还报错
再删,删掉caffe2_observers.dll
好了,运行正常了。




A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:8 个月前 )
1997a400 - 3 年前
2f423539 - 3 年前
更多推荐
所有评论(0)