<分区>
我使用的是 python 2.7 和 cx_oracle(Windows x86 安装程序(Oracle 10g,Python 2.7))并且我没有时间设置这个简单的例子来工作:
import cx_Oracle
connection = cx_Oracle.connect('user/pass@someserver:port')
cursor = connection.cursor()
cursor.execute('select sysdate from dual')
for row in cursor:
print row
connection.close()
错误信息:
Traceback (most recent call last):
File "C:\ORACON.py", line 1, in <module>
import cx_Oracle
ImportError: DLL load failed: The specified module could not be found.
目前,我所做的是:
1) 安装了 cx_oracle 二进制文件;
2) 从oracle网站下载instantclient_10_2并导出环境路径;
有人知道我缺少什么吗?
感谢您花时间阅读本文。