程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

[onnxruntime] Python cannot find the specified module: onnxruntime\capi\onnxruntime_ providers_ shared. dll

編輯:Python

problem :

Use pyinstaller Compilation of onnxruntime Executable program , An error occurred while executing

[E:onnxruntime:Default, provider_bridge_ort.cc:937 onnxruntime::ProviderSharedLibrary::Ensure]
LoadLibrary failed with error 126 " The specified module was not found ."
when trying to load "D:\AppData\Local\Temp\_MEI273962\onnxruntime\capi\onnxruntime_providers_shared.dll"

analysis :

Because the dependent cannot be found onnxruntime Of dll Make a mistake , You can compile the corresponding module into the executable file according to the prompted path .

solve :

Find the dependent dll, for example :onnxruntime-win-x64-gpu-1.10.0/lib Under the dll

Will rely on the dll Compile to the prompted directory

binaries=[('onnxruntime-win-x64-gpu-1.10.0\\lib\\*.*','\\onnxruntime\\capi')],


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved