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专栏

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