Python: import cx_Oracle ImportError: No module named cx_Oracle error is thown

后端 未结 8 1851
耶瑟儿~
耶瑟儿~ 2020-12-15 10:33

I try to write a script in .py for oracle connectivity:

#!/usr/bin/python

import cx_Oracle

connstr=\'username/pwd@database\'
conn = cx_Oracle.connect(conns         


        
8条回答
  •  再見小時候
    2020-12-15 10:49

    I had a similar problem, you gotta make sure you have:

    1. oracle instant client
    2. cx_Oracle binary( from SourceForge )
    3. Python IMPORTANT: Make sure they are ALL either 64-bit or 32-bit, mixing is gonna cause problems

提交回复
热议问题