Python 的 CX_Oracle,在 Anaconda 下未安装

问题描述 投票:0回答:2

Anaconda 一直告诉我 cx_oracle 需要 python 3.4。

我的conda版本是4.3.17

这是我使用cx_Oracle-5.3-11g.win-amd64-py3.5-2.exe安装程序之后的结果。应该用于 Python 3.5。

conda install -c anaconda cx_oracle=5.2
Fetching package metadata ...............
Solving package specifications: .
UnsatisfiableError: The following specifications were found to be in conflict:
- cx_oracle 5.2* -> python 3.4*
- python 3.5*
Use "conda info <package>" to see the dependencies for each package.

我在做一些愚蠢的事情,但我不确定是什么。然而。 想法? 提示?

python anaconda cx-oracle
2个回答
1
投票

该错误告诉您,您尝试安装的 cx_oracle 软件包依赖于 Python 3.4 b/c,这是

anaconda
通道上当前可用的 cx_oracle 版本。

如果您在 anaconda.org 上搜索 cx_oracle,您将看到其他几个渠道上的可用版本列表,并且可以查找满足您要求的版本(即 v5.2、Python 3.5、win64)。看起来没有一个能够满足那组确切的要求,但有一些 v5.21 和 v5.3 版本可用。如果足够接近,那么从

amodig
通道安装可能会让您继续:
conda install -c amodig cx_oracle=5.2.1


-1
投票

它对我有什么作用:

conda install conda-forge::cx_oracle

感谢@Duane 的建议。 希望有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.