How can I access Oracle from Python?

后端 未结 9 542
傲寒
傲寒 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:57

    Ensure these two and it should work:-

    1. Python, Oracle instantclient and cx_Oracle are 32 bit.
    2. Set the environment variables.

    Fixes this issue on windows like a charm.

提交回复
热议问题