0

I've been trying to use the python cx_Oracle module and it continuously throws the error -

cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found". See https://oracle.github.io/odpi/doc/installation.html#windows for help

As a prerequisite for it to work, i followed all the instructions mentioned in https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html I'm trying this on Windows 10 machine.

Here are the steps I followed -

  1. pip install --<proxy details> cx_Oracle
  2. Installed oracle instant client from https://www.oracle.com/in/database/technologies/instant-client/winx64-64-downloads.html - basic 64 bit version
  3. verified python installed is 64 bit too. see below
> python
Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 11:52:54) [MSC v.1900 64 bit (AMD64)] on win32`
  1. set my env variables for both my system and user as path=C:\Oracle\instantclient_19_6
  2. installed VS redistributable 2017 (64 bit again)

still continues to keep throwing the same error.

As a desperate measure i set, PATH=C:\Oracle\instantclient_19_6;%PATH% before running the python script; still throws the same error.

Any help how I can steer through this?

There are a couple of answers here, none of them worked through though - cx_Oracle error. DPI-1047: Cannot locate a 64-bit Oracle Client library

rameez md
  • 15
  • 1
  • 5

0 Answers0