在Centos 6.6 64位中安装pymssql [英] Installing pymssql in Centos 6.6 64-bit

查看:209
本文介绍了在Centos 6.6 64位中安装pymssql的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Centos 6.6中pip安装pymssql,但一直遇到此错误:

I'm trying to pip install pymssql in my Centos 6.6, but kept on experiencing this error:

_mssql.c:314:22:错误:sqlfront.h:没有这样的文件或目录 cpp_helpers.h:34:19:错误:sybdb.h:没有此类文件或目录

_mssql.c:314:22: error: sqlfront.h: No such file or directory cpp_helpers.h:34:19: error: sybdb.h: No such file or directory

我已经安装了freetds,freetds-devel和cython. 有任何想法吗?预先感谢!

I already installed freetds, freetds-devel, and cython. Any ideas? Thanks in advance!

推荐答案

查看完整的追溯,我们看到include_dirs包括/usr/local/include,但是头文件在/usr/include中,我想这与事实有关python 2.7不是系统python.

Looking at the full traceback we see that include_dirs includes /usr/local/include but the header files are in /usr/include which I imagine has to do with the fact python 2.7 is not the system python.

您可以更改setup.py脚本以包含/usr/include或将文件复制到/usr/local/include

You can change the setup.py script to include /usr/include or copy the files into /usr/local/include

这篇关于在Centos 6.6 64位中安装pymssql的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆