command 'x86_64-linux-gnu-gcc' failed with exit status 1(安裝pyodbc)

報錯的主要原因是:ubuntu下的python3版本是python3.5版本

使用下面命令升級python3到python3.6版本

sudo apt-get install python3.6-dev    # 安裝python3.6版本

sudo apt autoremove     # 移除其他版本

pip3 install pyodbc

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章