Python 3 安装ORACLE客户端

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

http://www.oracle.com/technetwork/topics/winsoft-085727.html.

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

你可能感兴趣的:(Python 3 安装ORACLE客户端)