python连接oracle数据库,使用cx-oracle报错Oracle Client library cannot be loaded-LMLPHP

原因分析:

首先我是win1064oracle64python3.6 64,cx-oracle版本是32位,这样的话,就会出现版本不一致的方法

解决方法:

要使版本一致即可,要么下载一个cx-oracle-64,但没有。那么怎么办?难道要去装一个32的数据库?不用,只要装个32位的即时数据库客户端即可,就是提示中的链接

https://oracle.github.io/odpi/doc/installation.html#windows

点击它,在window模块下,点击去下载对应的版本即可

python连接oracle数据库,使用cx-oracle报错Oracle Client library cannot be loaded-LMLPHP

下载最新的一版,然后解压到同一个文件下,再把这个文件目录添加到系统变量path

python连接oracle数据库,使用cx-oracle报错Oracle Client library cannot be loaded-LMLPHP

 最后,可能配置环境后,要重启一下电脑,再试一下

成功了

python连接oracle数据库,使用cx-oracle报错Oracle Client library cannot be loaded-LMLPHP

10-11 16:04