ImportError: DLL load failed: The specified module could not be found — IBM DB2

后端 未结 2 1306
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 09:07

I know there have been many people with this same issue, but here is my situation which I have not been able to find the exact same problem. I am building an executable wit

2条回答
  •  时光说笑
    2020-12-22 09:56

    Thanks for your question and answer. I had met the same situation in Windows7 Python3.7 ibm-db 3.0.1
    with your hint,I think the reason is that exe can't find *.dll in clidriver\bin and ibm_db.dll, and solve it with a similar method in two steps

    Frist: the same as you, add clidriver directory to system path

    **\site-packages\clidriver\bin
    

    Second pack with argument --add-binary

     Pyinstaller --add-binary **\Lib\site-packages\ibm_db_dlls\ibm_db.dll;.\ibm_db_dlls myproject.py
    

    Then it's OK!

    similar question: PyQt5 Executable is crashing with Missing DLL

提交回复
热议问题