“错误:找不到Oracle软件安装"尝试安装cx_Oracle时 [英] "error: cannot locate an Oracle software installation" When trying to install cx_Oracle

查看:126
本文介绍了“错误:找不到Oracle软件安装"尝试安装cx_Oracle时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的新手尝试使用python进行一些数据库分析.我不断收到错误: 在安装CX_oracle时(通过easy_install)错误:找不到Oracle软件安装".

Newbie here trying to use python to do some database analysis. I keep getting the error: "error: cannot locate an Oracle software installation" When installing CX_oracle (via easy_install).

问题是我的本地计算机上没有oracle,我正在尝试使用python连接到主oracle服务器.我已经设置了另一个程序来执行此操作(visualdb),我有一个.jar文件用作驱动程序,但是我不确定在这种情况下如何使用它.

The problem is I do not have oracle on my local machine, I'm trying to use python to connect to the main oracle server. I have have setup another program to do this(visualdb) and I had a .jar file I used as the driver but I'm not sure how to use it in this case.

有什么建议吗?

推荐答案

不要使用easy_install或pip,它们对于安装cx_Oracle并不是很有效,因为安装脚本有许多环境相关性. t自动设置.您需要获取一个oracle客户端驱动程序,最快找到该客户端驱动程序是Instantclient.然后将ORACLE_HOME和PATH指向驱动程序的安装位置,然后安装cx_Oracle本身.这样做之后,您应该会很好.

Don't use easy_install or pip, they don't really work very well for installing cx_Oracle since there are a number of environmental dependencies that the install scripts don't set up automatically. You need to get an oracle client driver, the quickest of which to find is the instantclient. Then point your ORACLE_HOME and PATH at the install location for the drivers, and install cx_Oracle itself. You should be good to go after that.

请参阅:在Windows上的easy_install cx_Oracle(python软件包)

问题是关于Windows的,但答案包括有关* nix的信息.

The question is about windows, but the answer includes info on *nix.

这篇关于“错误:找不到Oracle软件安装"尝试安装cx_Oracle时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆