在Jupyter笔记本中导入cx_Oracle会出现ModuleNotFoundError

问题描述 投票:0回答:1

我正在使用jupyter笔记本,我正在尝试在jupyter书中进行sql查询 但我收到一个错误

sql database pandas oracle cx-oracle
1个回答
2
投票

要在您自己的笔记本电脑上安装 cx_Oracle 最新版本 8.0.0,您需要已安装以下组件:

  • Python 3x
  • Oracle Instant Client 版本 11g 或更高版本。请参考此链接下载即时客户端版本

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

在 Windows 上下载并安装适用于 Python 的 cx_Oracle 包的步骤。就我而言,我更喜欢 GitHub 中提供的版本

https://github.com/oracle/python-cx_Oracle

1.单击“下载 cx_Oracle”链接从 Github 下载软件包。它将把 zip 文件下载到您的笔记本电脑中。

2.将 zip 文件解压到 Windows 上的文件夹中。例如,C

© www.soinside.com 2019 - 2024. All rights reserved.