cx_Oracle下载:
https://pypi.python.org/pypi/cx_Oracle
http://cx-oracle.sourceforge.net/
https://pypi.python.org/pypi/cx_Oracle/5.2.1
下载Oracle Instant Client:
安装 cx_Oracle 正确版本,需要区分 10g, 11g,安装 instantclient_11_2(请到 Oracle 官网下载)
问题ImportError: DLL load failed: 找不到指定的模块。
将 instantclient_11_2 所在的目录添加到环境变量,但是环境变量有时没有立即生效,可以复制 oci.dll(版本也要正确)到 \Python27\Lib\site-packages 目录下
这时又出现问题Unable to acquire Oracle environment handle,
复制 oci.dll 依赖的 dll,oraociei11.dll,ocijdbc11.dll 到 \Python27\Lib\site-packages 目录下。如果不清楚就将 instantclient_11_2 目录下的 dll 都复制到 \Python27\Lib\site-packages 目录下。如果不清楚,请访问该页面:http://www.chenxm.cc/post/237.html
参考:http://www.cnblogs.com/restran/p/4787609.html