Python cx_oracle 无法在 kernel32.dll 中找到 GetOverlappedResultEx

Python cx_oracle GetOverlappedResultEx could not be located in kernel32.dll

我正在尝试使用 cx_Oracle 连接到数据库,但在我发出 cx_Oracle.connect 语句时在代码中出现此错误。我是 运行ning windows 7 并且尝试过 python 的 32 位和 64 位版本以及相应的 Oracle Instant Client 版本。

如果我 运行 通过 Visual Studio 代码,我不会收到此错误,但会收到错误 "DPI-1050: Oracle Client library is at version 0.0 but version 11.2 or higher is needed"。我花了很多时间检查可能的解决方案并遵循发布的建议 () 但没有运气。

The GetOverlappedResultEx WinAPI function is new in Windows 8.

因此,这意味着您的 cx_Oracle 副本(或它链接的某些 DLL -- 可能是 Oracle 客户端库)不支持您的 Windows.[=13 版本=]

(顺便说一句,感谢打包作者提供了如此有用的错误消息)