基于RedHat的环境中的Python 3.5上的cx_oracle?

时间:2017-01-25 23:42:00

标签: python linux oracle cx-oracle

在Python包索引的cx_oracle下载页面上,我看到了cx_oracle的Windows和Linux版本。 https://pypi.python.org/pypi/cx_Oracle

但是,我只看到适用于Windows的Python 3.5版本。

是否可以在基于RedHat的Linux发行版上使用Python 3.5和cx_oracle?如果是这样,怎么样?如果没有,其他可用的库可以在基于RedHat的Linux发行版上使用Python 3.5和Oracle 11.2吗?

1 个答案:

答案 0 :(得分:1)

我会尝试从源代码构建它。我将它与Oracle Enterprise Linux 7.3一起使用,它是RedHat的一种变体。但我在Python 2.7中使用它。不过,我从源代码构建了cx_Oracle,这对我有用。为什么不尝试使用Python 3.5?

请注意,在安装cx_Oracle之前需要安装Oracle客户端。

巴比