➜ ~ pip install cx_Oracle –allow-external cx_Oracle –allow-unverified cx_Oracle
Downloading/unpacking cx-Oracle
Downloading cx_Oracle-5.1.3.tar.gz (104kB): 104kB downloaded
Running setup.py (path:/private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/cx-Oracle/setup.py) egg_info for package cx-Oracle
^CCleaning up…
Operation cancelled by user
Storing debug log for failure in /Users/qk/.pip/pip.log
➜ ~ pip install cx_Oracle –allow-external cx_Oracle –allow-unverified cx_Oracle
Downloading/unpacking cx-Oracle
Downloading cx_Oracle-5.1.3.tar.gz (104kB): 104kB downloaded
Running setup.py (path:/private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/cx-Oracle/setup.py) egg_info for package cx-Oracle
Traceback (most recent call last):
File “”, line 17, in
File “/private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/cx-Oracle/setup.py”, line 135, in
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 “”, line 17, in
File “/private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/cx-Oracle/setup.py”, line 135, in
raise DistutilsSetupError(“cannot locate an Oracle software ” \
distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation
Cleaning up…
Command python setup.py egg_info failed with error code 1 in /private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/cx-Oracle
Storing debug log for failure in /Users/qk/.pip/pip.log
有谁碰到此类问题的,如何解决
解决方法:ORACLE_BASE 、ORACLE_HOME这两个环境变量要配置
本文记录了在使用pip安装cx_Oracle过程中遇到的错误,并提供了详细的解决步骤。主要问题是由于未能找到Oracle软件安装路径导致安装失败,解决方法是正确配置ORACLE_BASE和ORACLE_HOME两个环境变量。
4970

被折叠的 条评论
为什么被折叠?



