cx_Oracle 报错 Reason: image not found

Posted on 2016-08-18 08:30  NooBkey  阅读(470)  评论(0编辑  收藏  举报

(Study_env) ➜ DAL python -c "import cx_Oracle"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: dlopen(/Code_Depot/Study_env/lib/python2.7/site-packages/cx_Oracle.so, 2): Library not loaded: @rpath/libclntsh.dylib.12.1
Referenced from: /Code_Depot/Study_env/lib/python2.7/site-packages/cx_Oracle.so
Reason: image not found

 

设置环境变量

export ORACLE_HOME='/Users/instantclient_12_1'
export LD_LIBRARY_PATH=$ORACLE_HOME

Copyright © 2024 NooBkey
Powered by .NET 9.0 on Kubernetes