在Centos 6.6 64位中安装pymssql [英] Installing pymssql in Centos 6.6 64-bit
问题描述
我试图在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屋!