python封装oracle客户端,Python 3 安装ORACLE客户端

本文指导如何在Windows环境下通过ANACONDA安装最新Oracle客户端,设置环境变量,下载并配置cx_Oracle模块,包括添加环境变量路径和执行pip安装。步骤包括下载12版本Oracle客户端,设置ORACLE_HOME,添加到Path环境变量,重启系统并安装cx_Oracle库。
摘要由CSDN通过智能技术生成

ANACONDA 支持的ORACLE,需要安装ORACLE客户端

最新的ORACLE 版本请参考

for Linux

https://docs.oracle.com/en/database/oracle/oracle-database/19/lacli/index.html

for Windows

https://docs.oracle.com/en/database/oracle/oracle-database/19/ntcli/index.html

或者参考Windows版本的例子

1.Download and unzip version 12 from

2.Add "ORACLE_HOME" as a Windows environment variable and set its value to ...\instantclient_12_1, (not its containing folder!).

3.Add this same path to the "Path" environment variable.

4.Only now install cx_Oracle.

use   cmd

pip install cx_Oracle libaio

5.Reboot the system

参考:

https://stackoverflow.com/questions/42290929/how-do-i-connect-oracle-db-with-my-python-script

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值