Python Forum

Full Version: Pip install error for cx_Oracle
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Python3.3, running pip and pip3.3 both produce the same result. This build is under the E: drive. Here is the error:

Output:
>pip install cx_Oracle
Error:
Collecting cx_Oracle   Using cached cx_Oracle-5.2.1.tar.gz     Complete output from command python setup.py egg_info:     Traceback (most recent call last):       File "<string>", line 1, in <module>       File "c:\users\us250767\appdata\local\temp\18\pip-build-j8fs9l\cx-Oracle\setup.py", line 186, in <module>         raise DistutilsSetupError(message)     distutils.errors.DistutilsSetupError: cannot locate Oracle include files in E:\Oracle\instantclient_12_1         ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\users\us250767\appdata\local\temp\18 \pip-build-j8fs9l\cx-Oracle\<-[om '1' is not recognized as an internal or external command, operable program or batch file.
https://bitbucket.org/anthony_tuininga/cx_oracle Wrote:Please note that an Oracle client (or server) installation is required in order to use cx_Oracle. If you do not require the tools that come with a full client installation, it is recommended to install the Instant Client which is far easier to install.

Your error, combined with this note on the module's page, seems to indicate that you don't have an oracle client installed. Most database layers are just thin wrappers around the actual client software, so without that installed, nothing would happen.
Thanks for the information.