Installing pymssql in Centos 6.6 64-bit

喜欢而已 提交于 2019-12-02 06:54:18

问题


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

_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

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


回答1:


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.

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



来源:https://stackoverflow.com/questions/28343666/installing-pymssql-in-centos-6-6-64-bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!