cx_Oracle 报错 Reason: image not found

Posted on 2016-08-18 08:30  NooBkey  阅读(481)  评论(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

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3