2011-02-17 82 views
1

右键我在我的机器上安装了Python 2.6.2,我希望在同一网络(不是本地计算机)上访问Oracle 10g(精确为10.2.0.1.0)实例,Oracle和Python - cx_Oracle DLL加载失败

我从

http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.0.4-10g.win32-py2.6.msi?download

但是安装cx_Oracle模块V5.0.4如果我加载Python解释器,这是我所得到的,当我尝试导入cx_Oracle

>>> import cx_Oracle 
Traceback (most recent call last): 
    File "<stdin>", line 1, in <module> 
ImportError: DLL load failed: The specified module could not be found. 

任何想法我可以做什么来解决这个问题?

Paul

+0

进口cx_Oracle 康恩= cx_Oracle.connect(主机= '1.11.18.41',用户= 'RDR',密码= 'RDR')小人= conn.cursor() curs.execute (“select * from fx_Alarm”) 打印curs.description 对于范围内的x(3,numrows):row = cursor.fetchall()打印行[0]打印行[1]打印行[2] curs.close () conn.close()我写了这个code.bt它说dll导入错误。我会告诉我应该安装哪个exe文件 – 2011-07-07 04:45:39

回答

1

好吧,看来我需要安装客户端版本的Oracle 10g。这一切都已经得到解决:O)

相关问题