码迷,mamicode.com
首页 > 数据库 > 详细

cx_Oracle 报错 Reason: image not found

时间:2016-08-18 08:42:05      阅读:294      评论:0      收藏: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

cx_Oracle 报错 Reason: image not found

标签:

原文地址:http://www.cnblogs.com/noobkey/p/5782603.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!