python cx_oracle

https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html
以下载Basic Package (ZIP)为例

1、将zip文件解压到/opt/intantclient_x_x

2、增加该目录下的so文件的系统引用,

3.a、新增/etc/ld.so.conf.d/oracle_instantclient.conf,内容/opt/intantclient_x_x
3.b、增加环境变量 LD_LIBRARY_PATH=”/opt/nwrfcsdk”,注意不能有空格
export LD_LIBRARY_PATH=”/opt/intantclient_x_x”
保存退出,生效
source /etc/profile

4、启用配置ldconfig

5、pip install cx_oracle