Python导入cx_Oracle ImportError:DLL加载失败。找不到了

2024-04-20 01:54:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图通过python3.6.1(64位)连接到oracle数据库。在

  • 我已经从中安装了cx_Oracle-5.3-11g.win-amd64-py3.6-2.exe 网址:https://pypi.python.org/pypi/cx_Oracle/5.3
  • 然后我下载了Instant client,并将内容解压缩到目的地:C:\Python\instantclient_11_2 网址:http://www.oracle.com/technetwork/topics/winx64soft-089540.html 文件1:instantclient-basic-windows.x64-11.2.0.4.0.zip 文件2:instantclient-sqlplus-windows.x64-11.2.0.4.0.zip 文件3:instantclient-odbc-windows.x64-11.2.0.4.0.zip
  • 然后我添加了windows环境变量: LD_LIBRARY_路径:C:\Python\instantclient_11_2 ORACLE_HOME:C:\Python\instantclient_11_2 路径:C:\Python\instantclient_11_2 路径:C:\Program Files\Python36\ 路径:C:\Program Files\Python36\Scripts\ Python客户端\tnu

但我仍然得到一个错误:当我在python中运行以下代码时,它找不到cx_oracle模块:

Import cx_oracle

我尝试了32位版本的py、oracle客户端和cx_oracle

我也一直在论坛上寻找所有类似的帖子,但仍然无法解决这个问题。有人能看出我做错了什么吗?在


Tags: 文件路径pypi客户端windowsfileszipprogram