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')],