错误详情如下图:
单单搜索 “ERROR: Command errored out with exit status 1” 这个异常发现很多不相干的答案. 然后通过关键词 “error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 PYODBC” 搜索到以下答案:
https://github.com/mkleehammer/pyodbc/issues/276
我的版本是3.6 使用以下命令安装 ODBC header files 解决
sudo apt-get install python3.6-dev
sudo apt-get install unixodbc-dev
pip install pyodbc
2022-03-29 更新
原来我特么以前遇到过这问题. 记录了的. https://blog.csdn.net/geekqian/article/details/100698643
竟然完全没印象了.giao…