【问题标题】:Python cx_Oracle ImportError: DLL load failedPython cx_Oracle ImportError:DLL 加载失败
【发布时间】:2011-04-06 05:36:37
【问题描述】:

我正在尝试导入 cx_Oracle 并输出错误

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

我在 win 2003 服务器上使用 python 2.7 和 cx_Oracle 5.1 执行此操作,从 .msi 安装。 Oracle 10g(3 个实例)存在于同一台服务器上。查看其他问题,我已经验证设置了 ORACLE_HOME,并且还设置了 bin dir 的路径。

我错过了什么?

【问题讨论】:

    标签: python cx-oracle


    【解决方案1】:

    在 cx_oracle 库上使用 (Dependency Walker) 应该可以非常快速地弄清楚缺少的内容。

    如果你不能使用它,一个典型的猜测是 oracle 客户端库 oraclntsh 无法访问。

    【讨论】:

    • Dependency walker 显示 OCI.DLL 文件存在一些问题。一些所需的功能被列为“红色”。我将尝试使用旧版本的 cx_Oracle,看看它是否会在我的 oracle 安装后变得更好。
    • 是否有常见问题解答或其他文档告诉我需要使用哪个版本的 OCI.DLL?使用旧版本的 cx_Oracle 并没有得到回报
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-13
    • 2016-03-03
    • 2020-04-04
    • 2017-07-24
    • 2021-01-19
    • 1970-01-01
    相关资源
    最近更新 更多