1.安装oracle instantclient-base 和sdk-base
http://www.oracle.com/technetwork/topics/linuxsoft-082809.html
2. yum install python-dev
build-essential libaio1( 如不能按装则按照这些库)
3.设置环境变量
cd ~
vim .bash_profile
添加以下语句
export ORACLE_HOME=/usr/lib/oracle/12.1/client
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client/lib
3.下载cx_oracle
https://pypi.python.org/pypi/cx_Oracle/5.1.3
python setup build && install