0
类型错误安装cx_Oracle:不支持Python数据类型:文件错误在Windows 7
:
In [9]: import cxOracle
Traceback (most recent call last):
File "<ipython-input-9-d1ecebcba3d2>", line 1, in <module>
import cx_Oracle
ImportError: DLL load failed: %1 is not a valid Win32 application.
:
C:\Users\system.labuser>pip install cx_Oracle
Collecting cs_Oracle
Using cached cx_Oracle-5.2.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback <most recent call last>:
File "<string>", line 1, in <module>
File "c:\users\system~1.lab\appdata\local\temp\pip-build-5bnyuh\cx-Oracle\setup.py", line 170, in <module>
raise DistutilsSetupError<"cannot locate an Oracle software " \
distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\system~1.lab\appdata\local\temp\pip-build-5bnyuh\cx-Oracle\
简称this question。问题依然存在。我使用Windows 7 64位PC。我该如何解决这个问题?
对于cx_Oracle邮件列表,这可能是一个更好的问题:https://sourceforge.net/p/cx-oracle/mailman/search/?q=windows – Scovetta