【发布时间】:2016-06-01 02:14:17
【问题描述】:
我需要在 Python Anaconda3-2.5.0-Windows-x86_64 中连接到 Oracle 数据库。 cx_Oracle 模块的安装方式:
conda install -c https://conda.anaconda.org/anaconda cx_oracle
失败,输出如下(修剪):
Hint: the following packages conflict with each other:
- cx_oracle
- python 3.5*
所以我尝试通过来自https://pypi.python.org/pypi/cx_Oracle/ 的“cx_Oracle-5.2.1-11g.win-amd64-py3.5.exe”安装 Python 3.5 软件包,这似乎正在工作(不知何故)。甚至 'conda list' 命令也会打印行:
cx-oracle 5.2.1 <pip>
但是当我在 Python 中输入 import cx_Oracle; 时
ImportError: DLL load failed: Uvedený modul nebyl nalezen.
出现。最后一个本地化部分的粗略翻译是“未找到模块”。
如何安装 cx_Oracle 模块?或者有没有其他方式可以连接到Oracle数据库?
【问题讨论】:
标签: python oracle python-3.x anaconda conda