文章内容
2018/9/6 9:54:04,作 者: 黄兵
Failed building wheel for pyodbc
最近需要将一个应用部署到ubuntu服务器上面,但是安装依赖库的时候报如下错误:
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
Failed building wheel for pyodbc
Running setup.py clean for pyodbc
Failed to build pyodbc
具体错误截图如下:

出错原因:
Your machine does not have the ODBC header files installed。
没有安装ODBC依赖文件。
解决方案:
安装相关依赖文件:
sudo apt-get install unixodbc-dev
之后再次安装
pyodbc。黄兵个人博客原创。
评论列表