cx_Oracle 模块如何安装

2015-03-01 17:51:24 +08:00
 qinkun1234
我参考这篇文章安装cx_Oracle模块 http://kevindalias.com/2014/03/26/how-to-set-up-cx_oracle-for-python-on-mac-os-x-10-89/

控制台报如下错

➜ ~ 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 "<string>", line 17, in <module>
File "/private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/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 17, in <module>

File "/private/var/folders/bh/yqy9l7cx5vd77ymkjhtyv8r40000gn/T/pip_build_qk/cx-Oracle/setup.py", line 135, in <module>

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

有谁碰到此类问题的,如何解决。
4863 次点击
所在节点    Python
2 条回复
dawncold
2015-03-01 18:07:34 +08:00
感觉就和oracle_home没设置似的,在ubuntu下未遇到类似问题
withrock
2015-03-02 14:56:34 +08:00
ORACLE_BASE 、ORACLE_HOME这两个环境变量要配置

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/173770

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX