美文网首页
python连oracle: DPI-1047错误

python连oracle: DPI-1047错误

作者: COLOR_KU | 来源:发表于2020-12-12 09:23 被阅读0次

python连接oracle的时候报错

DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: “The specified module could not be found”. See https://oracle.github.io/odpi/doc/installation.html#windows for help

解决方案

要求

①pycharm是64位

②oracle客户端是64位

③python是64位

接下来的操作,去oracle客户端安装目录找到三个文件,分别是

oci.dll、oraocci11.dll、oraociei11.dll

然后把这些文件复制到python的安装目录site-packages下,重启工具就可以了

相关文章

网友评论

      本文标题:python连oracle: DPI-1047错误

      本文链接:https://www.haomeiwen.com/subject/dkjegktx.html