install cx_Oracle on CentOS 7

Here is a simple way to install cx_Oracle on CentOS 7
in order to install , we will use Oracle instant client , and python pip

1. Download and install oracle client from Oracle

yum install libaio
rpm -Uvh oracle-instantclient12.1-basic-
rpm -Uvh oracle-instantclient12.1-devel-
rpm -Uvh oracle-instantclient12.1-sqlplus-

2. Add Oracle client to library path

echo "/usr/lib/oracle/12.1/client64/lib" >/etc/

3. install epel repo via yum extra

yum install epel-release

4. Install additional

yum install gcc python-pip.noarch python-devel

5. Install  cx_Oracle via pip

pip install cx_Oracle