【发布时间】:2013-12-08 04:49:54
【问题描述】:
这就是我所做的:
- 我使用的是 Windows XP SP3
- 我已经安装了 Python 2.7.1。
- 我下载了
instantclient-basic-nt-11.2.0.3.0.zip,解压后放入C:\Program Files\Oracle\instantclient_11_2。 - 我将此路径添加到 Windows
Path环境变量中。 - 我创建了一个新的环境变量
ORACLE_HOME,将这个路径作为它的值。 - 我安装了
cx_Oracle-5.1.2-11g.win32-py2.7.msi。
在运行import cx_Oracle 时,我得到的只是
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
我显然卸载/重新安装了 cx_Oracle 几次,但似乎没有任何帮助。谁能提供线索如何解决这个问题?
更新
我运行了 Dependency Walker,但遇到了很多麻烦。然而,第一个缺失的 .dll (msvcr80.dll) 实际上存在在C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.91_x-ww_0de56c07。
【问题讨论】:
标签: python dll oracle11g cx-oracle