Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8145605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:42:49+00:00 2026-06-06T13:42:49+00:00

So I found Help installing cx_Oracle but am still stuck. I downloaded the latest

  • 0

So I found Help installing cx_Oracle but am still stuck. I downloaded the latest instantclient from oracle, and set ORACLE_HOME to the location of the extracted files (both direct and with a bin folder between the ORACLE_HOME value and the files), but easy_install is popping an error when running setup.py saying it can’t locate the Oracle include files. I did notice that only the 11g dll is in the folder, do I need all 3 drivers present for setup to complete? If so, where do I even get them?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:42:51+00:00Added an answer on June 6, 2026 at 1:42 pm

    Honestly it is a hell of a lot easier to install cx_Oracle from one of the binary installers they have, than from source.

    HOWTO for *nix:

    1. Browse to Instant Client for Linux x86 download page.

    2. Download the latest version of basic, sqlplus and sdk packages that fit your architecture (32 or 64bits):

      • oracle-instantclient<version>-basic-<version_full>.<arch>.rpm
      • oracle-instantclient<version>-sqlplus-<version_full>.<arch>.rpm
      • oracle-instantclient<version>-devel-<version_full>.<arch>.rpm.
    3. Install the RPMs using alien. For example, at the time of this writing:

      $ sudo alien -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
      
    4. Add necessary environment variables (I personally did put it in /etc/environment then logoff/back in to reload the env):

      ORACLE_HOME=/usr/lib/oracle/<version>/client64/lib/
      LD_LIBRARY_PATH=/usr/lib/oracle/<version>/client64/lib/
      
    5. Fix oracle’s includes:

      $ sudo ln -s /usr/include/oracle/<version>/client $ORACLE_HOME/include  # for 32bits arch, OR
      $ sudo ln -s /usr/include/oracle/<version>/client64 $ORACLE_HOME/include  # for 64bits arch
      
    6. Create /etc/ld.so.conf.d/oracle-instantclient<version>-basic.conf and /etc/ld.so.conf.d/oracle.conf (for more recent versions, at least since 12.1) containing:

        /lib  
        /usr/lib/oracle/<version>/client/lib  ; for 32bits arch, OR
        /usr/lib/oracle/<version>/client64/lib  ; for 64bits arch
      
    7. Reload ldconfig cache (use -v flag if you want some verbose):

      $ sudo ldconfig
      

    You might need to install libaio1.

    HOWTO Install cx_Oracle

    Assuming we have installed Oracle Instant Client 10, you have different alternatives to install cx_Oracle:

    1. Install with pip: $ pip install cx_oracle (linux only)
    2. Download the installer/.tar.gz file from the cx_oracle PyPI site

    Older versions (version less than 5.1.2 are .msi and .rpm files) can be downloaded from here. Install the RPMs using alien. For example, at the time of this writing:
    $ sudo alien -i cx_Oracle-5.0-10g-py25-1.x86.rpm

    To test, python -c 'import cx_Oracle; print cx_Oracle' should return the modules with its version.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

-o changes the output filename (I found that using --help) But I can't find
I've found lots of libraries to help with parsing command-line arguments, but none of
Found this Multimap containing pairs? , but it is not much help How would
I found the same question asked but it was answered insufficiently from my n00b
WHEN I WAS INSTALLING WSGI MODULE FOR APACHE I downloaded the module from http://code.google.com/p/modwsgi/downloads/detail?name=mod_wsgi-win32-ap22py27-3.3.so
I experience a very strange problem and I don't have found any help to
Okay, so I have been searching and searching and have not found any help.
With the help of flodel I found a way to replace numeric codes with
I just found a nice tutorial that will help me implement an easy user
I have recently found myself becoming more negative about EF and cannot help wondering

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.