我跟着this tutorial在Mac上安装cx_oracle。经过一些调整,它是成功的。我之前正在使用小牛队。然后我得到了一个升级到埃尔卡皮坦。这就是灾难进来。CX甲骨文导入错误
它停止工作。我在前面的目录中找不到相关的文件。由于System Integrity Protection,我经历了整个过程,并再次安装此在usr/local/lib/share/oracle/installclient_11_2
。
但现在当我运行该程序。它抛出这个错误消息:
ImportError: dlopen(/Library/Python/2.7/site-packages/cx_Oracle.so, 2): Library not loaded: /ade/b/3071542110/oracle/rdbms/lib/libclntsh.dylib.11.1
Referenced from: /Library/Python/2.7/site-packages/cx_Oracle.so
Reason: image not found
我尝试了很多解决方案的在线,像https://gist.github.com/rmoff/5a70862f27d2284e9541,http://kevindalias.com/2014/03/26/how-to-set-up-cx_oracle-for-python-on-mac-os-x-10-89/
仍然没有运气上我:(
任何建议,欢迎在此先感谢
!=============================================== ===========================
UPDATE:
发现this post在线,神奇的作品在埃尔卡皮坦。按照本指导逐步删除旧安装,重新开始安装。
@AlexPoole我是这么认为的。我使用以下命令:'export DYLD_LIBRARY_PATH = $ ORACLE_HOME ' – Julia