在使用oracle设置django时,oracle_home是强制性的,我在一个ip地址中安装了两台机器,在其他Ip地址中安装了django webapp,当我尝试安装时
pip install cx_Oracle它抛出错误
pip install cx_Oracle
Downloading/unpacking cx-Oracle
Running setup.py egg_info for package cx-Oracle
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/cx-Oracle/setup.py", line 135, in <module>
raise DistutilsSetupError("cannot locate an Oracle software " \
distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip-build-root/cx-Oracle/setup.py", line 135, in <module>
raise DistutilsSetupError("cannot locate an Oracle software " \
distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation是必须将安装在同一个框中,否则我就错过了
发布于 2014-12-10 11:48:10
尝试:
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
pip install cx_oraclehttps://stackoverflow.com/questions/27396127
复制相似问题