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