cx_Oracle 报错 Reason: image not found

(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

上一篇:cryptoJS AES 加解密简单使用


下一篇:Python导入cx_Oracle报错