報錯的主要原因是:ubuntu下的python3版本是python3.5版本
使用下面命令升級python3到python3.6版本
sudo apt-get install python3.6-dev # 安裝python3.6版本
sudo apt autoremove # 移除其他版本
pip3 install pyodbc
報錯的主要原因是:ubuntu下的python3版本是python3.5版本
使用下面命令升級python3到python3.6版本
sudo apt-get install python3.6-dev # 安裝python3.6版本
sudo apt autoremove # 移除其他版本
pip3 install pyodbc