尽管安装了cx_Oracle,但无法找到64位oracle客户端库

时间:2020-03-27 14:52:21

标签: python oracle cx-oracle instantclient

我一直在尝试使用python cx_Oracle模块,它不断抛出错误-

cx_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

作为其工作的前提,我遵循了https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html中提到的所有说明 我正在Windows 10计算机上尝试此操作。

这是我遵循的步骤-

  1. pip install --<proxy details> cx_Oracle
  2. https://www.oracle.com/in/database/technologies/instant-client/winx64-64-downloads.html-基本的64位版本安装了oracle Instant Client
  3. 安装的
  4. 经过验证的python也是64位的。见下文
> python
Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 11:52:54) [MSC v.1900 64 bit (AMD64)] on win32`
  1. 将我的系统和用户的环境变量设置为path = C:\ Oracle \ instantclient_19_6
  2. 安装了VS Redistributable 2017(再次64位)

仍然继续抛出相同的错误。

我设置了一个绝望的措施,在运行python脚本之前,PATH = C:\ Oracle \ instantclient_19_6;%PATH%;仍然会引发相同的错误。

有什么可以帮助我解决这个问题的帮助吗?

这里有两个答案,但是没有一个能解决- cx_Oracle error. DPI-1047: Cannot locate a 64-bit Oracle Client library

0 个答案:

没有答案