(ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found
(ibm_db) ImportError: DLL load failed while importing ibm_db: The specified module could not be found
我已经为 IBM DB2 安装了 Python 3.8.1 和 ibm_db 3.0.1 API。
当我在调试模式下尝试 'import ibm_db' 时,我得到
"ImportError: DLL load failed while importing ibm_db: The specified
module could not be found."
我尝试卸载并重新安装 Python 和 API,安装 Python 的早期版本,但没有任何效果。
我还尝试查看在导入 ibm_db 之前添加路径是否会有所不同:
sys.path.append(
"C:\Users\<userid>\AppData\Local\Programs\Python\Python38\Lib\site-packages\ibm_db")
应该没有那么难,所以请随时提出可能被认为是显而易见的建议。
更新:16/June/2020,ibm_db 模块版本 3.0.2 及更高版本现在支持 Microsoft Windows 平台上的 Python 3.8。
低于 v3.0.2 的 ibm_db 模块版本不支持 Microsoft-Windows 上的 Python 3.8。
您可以在相关 github 问题 github 中看到这一点。
ibm_db v3.0.1 将在 Microsoft Windows.
上安装并与 Python 3.7.x 一起正常工作
我已经为 IBM DB2 安装了 Python 3.8.1 和 ibm_db 3.0.1 API。 当我在调试模式下尝试 'import ibm_db' 时,我得到
"ImportError: DLL load failed while importing ibm_db: The specified
module could not be found."
我尝试卸载并重新安装 Python 和 API,安装 Python 的早期版本,但没有任何效果。 我还尝试查看在导入 ibm_db 之前添加路径是否会有所不同:
sys.path.append(
"C:\Users\<userid>\AppData\Local\Programs\Python\Python38\Lib\site-packages\ibm_db")
应该没有那么难,所以请随时提出可能被认为是显而易见的建议。
更新:16/June/2020,ibm_db 模块版本 3.0.2 及更高版本现在支持 Microsoft Windows 平台上的 Python 3.8。
低于 v3.0.2 的 ibm_db 模块版本不支持 Microsoft-Windows 上的 Python 3.8。
您可以在相关 github 问题 github 中看到这一点。
ibm_db v3.0.1 将在 Microsoft Windows.
上安装并与 Python 3.7.x 一起正常工作