How can I access Oracle from Python?

后端 未结 9 527
傲寒
傲寒 2020-12-04 12:15

How can I access Oracle from Python? I have downloaded a cx_Oracle msi installer, but Python can\'t import the library.

I get the following error:

im         


        
9条回答
  •  时光取名叫无心
    2020-12-04 12:52

    In addition to the Oracle instant client, you may also need to install the Oracle ODAC components and put the path to them into your system path. cx_Oracle seems to need access to the oci.dll file that is installed with them.

    Also check that you get the correct version (32bit or 64bit) of them that matches your: python, cx_Oracle, and instant client versions.

提交回复
热议问题