import cx_Oracle,ImportError: DLL load failed: 找不到指定的模块

时间:2022-11-25 18:03:02

安装cx_Oracle,在python里面import cx_Oracle,提示:

 

>>> import cx_Oracle

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import cx_Oracle
ImportError: DLL load failed: 找不到指定的模块。

 

复制oci.dll到$python_home (比如c:/python27),解决。