在Debian5上,我一直试图安装用于python的cx_oracle模块,但没有成功。首先,我安装了oracle xe client及其依赖项(遵循下面链接here中的教程)。
然后,我使用/usr/lib/oracle/xe/app/oracle/product/10.2.0/client/bin中的脚本来填充环境变量,如PATH、oracle_HOME和NLS_LANG
完成后,我试图运行:sudo easy_install cx_oracle
但我一直有以下错误:Searching for cx-oracle
Reading http://pypi.python.org/simple/cx_oracle/
Reading http://cx-oracle.sourceforge.net
Reading http://starship.python.net/crew/atuining
Best match: cx-Oracle 5.0.4
Downloading http://prdownloads.sourceforge.net/cx-oracle/cx_Oracle-5.0.4.tar.gz?download
Processing cx_Oracle-5.0.4.tar.gz
Running cx_Oracle-5.0.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-xsylvG/cx_Oracle-5.0.4/egg-dist-tmp-8KoqIx
error: cannot locate an Oracle software installation
知道我错过了什么吗?