Alpine,pip安裝包的時候出現error: command 'gcc' failed with exit status 1

Alpine,pip安裝包的時候出現error: command 'gcc' failed with exit status 1

問題

/usr/local/include/python3.7m/Python.h:11:10: fatal error: limits.h: No such file or directory
#include <limits.h>
^~~~~~~~~~
compilation terminated.
error: command ‘gcc’ failed with exit status 1
----------------------------------------

在這裏插入圖片描述

解決問題

每個系統都有對應的python開發環境,這個報錯就意味着當前的系統沒有完整的python開發環境。

apk add --no-cache gcc g++ python python-dev py-pip mysql-dev linux-headers libffi-dev openssl-dev

關於作者

聯繫方式 - [email protected]

你也可以通過 github | csdn | @新浪微博 關注我的動態

    如果有任何問題或者建議,歡迎大家評論點贊👍

我的Docker專欄

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