64-bit Oracle Client library cannot be loaded: "The specified module could not be found".

用python跑数据库脚本时,python报错"DatabaseError: DPI-1047: 64-bit Oracle Client library cannot be loaded: "

原因是我的python2.7是64位的,并且装了cx_oracle6.1库,而数据库用了32位的instantclient-basic。

解决方案:下载个64位的,然后解压,配置64位的instantclient-basic路径到系统环境变量Path,重新运行python脚本即可。

路径:D:\itSoftware\instantclient_12_2

猜你喜欢

转载自blog.csdn.net/weixin_40744265/article/details/81213926