Cannot locate a 64-bit Oracle Client library:The specified module could not be found.

python连接oracle

首先需要在cmd命令行输入命令安装py连接oracle数据库的依赖包

pip install cx_Oracle

代码如下:
在这里插入图片描述
报错如下:
Cannot locate a 64-bit Oracle Client library:The specified module could not be found._第1张图片

解决方法

在下面网址寻找与自己版本对应的远程连接客户端

https://www.oracle.com/database/technologies/instant-client/downloads.html

Cannot locate a 64-bit Oracle Client library:The specified module could not be found._第2张图片

Cannot locate a 64-bit Oracle Client library:The specified module could not be found._第3张图片

将所有的dll文件放到你的python环境下

Cannot locate a 64-bit Oracle Client library:The specified module could not be found._第4张图片

再次执行刚才的程序(成功)

Cannot locate a 64-bit Oracle Client library:The specified module could not be found._第5张图片

你可能感兴趣的:(坑坑坑,oracle,数据库,database)