0

Hi I am getting below error when trying to connect to Oracle from python.

 Traceback (most recent call last):
  File "C:\Python34\Scripts\OraConnect.py", line 1, in <module>
    import cx_Oracle
ImportError: No module named 'cx_Oracle'
2

2 Answers 2

0

try installing the module "pip install cx_Oracle" first and then try

Sign up to request clarification or add additional context in comments.

Comments

0

cx_Oracle was obsoleted several years ago by python-oracledb. So the "correct" solution now is to use python -m pip install oracledb. Also see https://medium.com/gitconnected/what-is-the-difference-between-cx-oracle-and-python-oracledb-d2887336f75a

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.