简体   繁体   中英

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.

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM