Assuming we have installed Oracle Instant Client 11,
- Browse to homepage of cx_Oracle.
- Download the "CentOS 5 x86_64 RPM (Oracle 11g, Python 2.5)" (Ubuntu 8.10 (intrepid) by default carries Python 2.5).
- Install the RPMs using alien. For example, at the time of this writing:
sudo alien -i cx_Oracle-5.0-11g-py25-1.x86_64.rpm
To test,
python -c 'import cx_Oracle'
should "just return" without errors.