gpt4 book ai didi

oracle - 无法在 python "ImportError: DLL load failed: The specified procedure could not be found."中导入 cx_Oracle

转载 作者:行者123 更新时间:2023-12-01 16:02:19 25 4
gpt4 key购买 nike

这两天我一直在尝试使用 cx_Oracle。我想从 python 连接到 oracle。但我收到“ImportError:DLL 加载失败:找不到指定的过程。”错误。我已经浏览了很多帖子并尝试了其中建议的内容,但没有任何帮助。

我按照很多帖子的建议检查了 Windows、Python、Oracle 客户端的版本,但它们对我来说都不错。

Python 版本 2.7:64 位

Python 2.7.8(默认,2014 年 6 月 30 日,16:08:48)[MSC v.1500 64 位 (AMD64)] on win32

Windows 7:64 位

Oracle 客户端是 11.2.0: 64 位

我运行了 Sqlplus 并检查了任务管理器以确认这一点。因为我的系统上同时安装了 32 位和 64 位客户端,但 PATH 变量中设置了 64 位。

请帮我解决这个问题。如果需要任何其他信息,请告诉我。

最佳答案

我能够解决它。我之前安装了错误版本的 cx_Oracle。它适用于 12c oracle 客户端。我稍后安装了 11g 版本,它开始为我工作。

注意:无需设置ORACLE_HOME环境变量。

Oracle 客户端、Python、Windows 操作系统都必须具有相同的体系结构。 32 位或 64 位。

关于oracle - 无法在 python "ImportError: DLL load failed: The specified procedure could not be found."中导入 cx_Oracle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32561547/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com