yellolion
yellolion

Reputation: 91

Failure of cx_Oracle underneath pip command fails on python27

version: python2.7

attempting to install cx_oracle

Collecting cx_Oracle Using cached cx_Oracle-5.3.tar.gz Complete output from command python setup.py Traceback (most recent call last): File "", line 1, in File "C:\Users\Test\AppData\Local\Temp\pycharm-packaging\cx-Oracle\setup.py", line 190, in raise DistutilsSetupError(message) distutils.errors.DistutilsSetupError: cannot locate Oracle include files in C:\new_software\Oracle\instantclient_12_1 Command "python setup.py egg_info" failed with error code 1 in C:\Users\Test\AppData\Local\Temp\pycharm-packaging\cx-Oracle\

I have installed oracle client 12_1 and set Oracle Home and PATH variables on Windows10.

python2.7 is installed and within python27/scripts/ , I see pip.exe

I get below error when i tried running:

C:\new_software\Python27\Scripts>pip install cx_Oracle failed to create process.

Request help. Thanks.

Upvotes: 1

Views: 2908

Answers (1)

Anthony Tuininga
Anthony Tuininga

Reputation: 7096

For cx_Oracle 5.x you need to have the SDK package of the instant client installed on your machine in order to build.

cx_Oracle 6.x, however, doesn't require that package at all. In fact, binary wheels are available so you don't need to compile anything at all! You can install the first beta of this version by using this command:

pip install cx_Oracle --pre

You can also download and install a pre-compiled binary from PyPI.

Upvotes: 2

Related Questions