cx_Oracle 模块如何安装

➜ ~ 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 “”,in

File “/private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/cx-Oracle/setup.py”,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这两个环境变量要配置

相关文章

数据库版本:11.2.0.4 RAC(1)问题现象从EM里面可以看到,在23号早上8:45~8:55时,数据库等待会话暴增...
(一)问题背景最近在对一个大约200万行数据的表查看执行计划时,发现存在异常,理论上应该返回100多万...
(一)删除备份--DELETE命令用于删除RMAN备份记录及相应的物理文件。当使用RMAN执行备份操作时,会在RM...
(1)DRA介绍 数据恢复顾问(Data Recovery Advise)是一个诊断和修复数据库的工具,DRA能够修复数据文...
RMAN(Recovery Manager)是Oracle恢复管理器的简称,是集数据库备份(backup)、修复(restore)和恢复...
(1)备份对象 可以使用RMAN进行的备份对象如下: --整个数据库:备份所有的数据文件和控制文件; --数...