python - cx_Oracle 错误。 DPI-1047 : Cannot locate a 64-bit Oracle Client library

标签 python python-3.x windows-10 cx-oracle

我安装了库,当尝试使用我的凭据访问 jupyter notebook 中的 SQL 时,出现以下错误:

DatabaseError:DPI-1047:找不到 64 位 Oracle 客户端库:“找不到指定的模块”。见 https://oracle.github.io/odpi/doc/installation.html#windows求助

最佳答案

最简单的解决方案如下:

  • 从以下地址下载 64 位版本的 oracle instantClient:https://www.oracle.com/database/technologies/instant-client/winx64-64-downloads.html
  • 将instantclient目录下的dll文件复制到python目录下,如下图

  • enter image description here
    enter image description here
    这就对了!

    关于python - cx_Oracle 错误。 DPI-1047 : Cannot locate a 64-bit Oracle Client library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56119490/

    相关文章:

    windows - 如何使用NSIS向 "Open With"菜单添加程序

    python - Pandas N 元语法到列

    python - Base64解码

    带代码签名 .exe 文件的 Windows 10 SmartScreen

    python - 如何以滚动方式快速将 pandas 数据框中的多行转换为 1 行?

    Python + opencv 与 PyCharm- 'opencv' 没有属性 'imread'

    git - 尝试切换分支时在 Windows 中获取 "error cannot stat"消息

    python - 如何提高循环效率?

    python使用lxml和xpath解析html表上的特定数据

    python - 从多个文件中抓取行的最快方法