【问题标题】:Error while installing cx_Oracle on windows在 Windows 上安装 cx_Oracle 时出错
【发布时间】:2014-09-12 06:35:32
【问题描述】:

我正在尝试在我的 Windows 中安装 python 的 cx_Oracle 模块。 我不断收到下面提到的错误:找不到 Oracle 软件安装

我需要什么样的 Oracle 软件才能使 cx_Oracle 模块工作?

---------------------------------------------- ----------------------

C:\Users\ndhaka.ORADEV>pip install cx_Oracle
Downloading/unpacking cx-Oracle
Running setup.py (path:c:\users\ndhaka~1.ora\appdata\local\temp\pip_build_ndhaka\cx-Oracle\setup.py) egg_info for package cx-Oracle
Traceback (most recent call last):
  File "<string>", line 17, in <module>
  File "c:\users\ndhaka~1.ora\appdata\local\temp\pip_build_ndhaka\cx-Oracle\setup.py", line 135,in <module>
    raise DistutilsSetupError("cannot locate an Oracle software " \
distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

文件“”,第 17 行,在

文件“c:\users\ndhaka~1.ora\appdata\local\temp\pip_build_ndhaka\cx-Oracle\setup.py”,第 135 行,

raise DistutilsSetupError("cannot locate an Oracle software " \

distutils.errors.DistutilsSetupError: 找不到 Oracle 软件安装


正在清理... 命令 python setup.py egg_info 失败,错误代码 1 在 c:\users\ndhaka~1.ora\appdata\local\temp\pip_build_ndhaka\cx-Oracle 在 C:\Users\ndhaka.ORADEV\pip\pip.log 中存储失败的调试日志

【问题讨论】:

    标签: python-2.7 cx-oracle


    【解决方案1】:

    您需要在您的机器上安装 Oracle 客户端,因为 cx_Oracle 只是 Python 和 Oracle 客户端之间的桥梁。 我遇到了同样的问题并通过从here 安装即时客户端解决了我的问题 请确保将兼容版本(32 位或 64 位)安装到您的系统中

    按照此链接中的所有步骤,您将在您的机器上完美安装 cx_Oracle 模块。 link

    【讨论】:

    • 第二个赞坏了,@Learner。
    猜你喜欢
    • 2017-09-10
    • 1970-01-01
    • 2017-06-08
    • 1970-01-01
    • 2013-02-25
    • 2013-11-30
    • 2018-09-03
    • 2014-04-25
    • 2015-02-06
    相关资源
    最近更新 更多