cx_Oracle问题,我在哪里可以下载cx_Oracle.pyd

时间:2017-02-26 13:57:52

标签: python oracle cx-oracle

从哪里可以下载Python 3.5的文件cx_Oracle.pyd?

我在Windows7计算机上安装cx_Oracle时遇到问题

我的机器上没有注册表编辑权限,所以当我安装Python 3.5时,它的条目似乎没有在注册表中生成。因此,当我在Windows上运行cx_Oracle安装程序时,它会抱怨它无法在注册表中找到Python 3.5条目。

我尝试构建cx_Oracle表单源,它发出以下错误

创建build \ temp.win32-3.5-12c \ Release     cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MD -IC:\ oracle \ instantclient_12_1 \ sdk \ include -Ic:\ users \\ appdata \ local \ programs \ python \ python35-32 \ include -Ic:\ users \\ appdata \ local \ programs \ python \ python35-32 \ include /Tccx_Oracle.c / Fobuild \ temp.win32-3.5-12c \ Release \ cx_Oracle.obj -DBUILD_VERSION = 5.2.1     错误:命令' cl.exe'失败:没有这样的文件或目录

所以我认为我只能选择将文件cx_Oracle.pyd放在Python路径中。但我无法在网页上找到它,我可以直接获取此文件的任何指针都会有所帮助。

谢谢, 最大

1 个答案:

答案 0 :(得分:0)

在PyPI(https://pypi.python.org/pypi/cx_Oracle)上找到的安装程序只是附加到存根可执行文件的zip文件。因此,您可以直接从zip文件中提取文件,并根据需要将它们直接放在Python路径中。请注意,您确实需要确保在运行64位Python时还要安装64位cx_Oracle,如果运行的是32位Python,则还要安装32位cx_Oracle。

在Windows上从源代码构建cx_Oracle需要C编译器。默认值为Visual Studio 2015,但您也可以使用mingw32包中的gcc。

相关问题