import pypyodbc module 报错 'ODBC Library is not found. Is LD_LIBRARY_PATH set?'

centos 7安装pypyodbc模块后,仍然报错 'ODBC Library is not found. Is LD_LIBRARY_PATH set?'

pypyodbc模块的开发人员反馈:

Hi, I'm the maintainer of pypyodbc. I noticed you meet the library 
 loading problem and I re-looked at the code, and I uploaded a 
 patch that will fix the library loading problem. 

It's ture pypyodbc requires odbc (the unixodbc package), and like 
pypyodbc, pyodbc also requires that on linux. However, in the previous 
version, it seems pypyodbc didn't find your libodbc.so library 
correctly. I updated the way how pypyodbc find the lib, and I think 
this may be able to solve the problem. 

You can download the latest verson at 
http://pypyodbc.googlecode.com/svn/trunk/pypyodbc/pypyodbc.py 

 

其实主要是没找到libodbc.so文件,需要系统中有安装unixodbc 包,所以解决方案为 :

yum install unixODBC

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值