OSError: [WinError 126] torch, caffe2_detectron_ops.dll [해결o]
환경 파이썬python 3.7.9 / torch 1.6+cpu
예전 기기에 사용하던 그대로 라이브러리를 설치했는데
테스트를 위해 돌려본 파일이 저런 오류를 리턴했다.
"C:\Users\{사용자}\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\__init__.py", 라인 127, in <module>
raise err
OSError: [WinError 126] 지정된 모듈을 찾을 수 없습니다. Error loading "C:\Users\king2\AppData\Local\Programs\Python\Python37\lib\site-packages\torch\lib\caffe2_detectron_ops.dll" or one of its dependencies.
해결 :
Error in training opennmt - caffe2_detectron_ops.dll not found
I have torch 1.6 and python 3.8. When training OpenNMT, it throws the following error - OSError: [WinError 126] The specified module could not be found. Error loading "C:\Users\Girish\AppData\...
stackoverflow.com
Just deleting "caffe2_detectron_ops.dll" from the path
그대로 삭제하니까 문제없이 실행되었는데, 이게 근본적인 해결책은 아닌거같다.
해결방법이나 caffe2_detectron_ops 와 관한 오류가 발생하면 추가적으로 작성.