Centos7.4 pip 安装uwsgi 报错“fatal error: Python.h: No such file or directory”

最近在使用centos安装flask环境的时候,pip install uwsgi 这一步老是报错,网上搜索了很多答案,
基本答案都是安装 python-dev 和 build-essential,我试着yum了一下,发现居然没有找到包
后来想想自己的环境python的版本是3.6
换个姿势试试
yum install python36-devel (centos是devel)
完美,成功了!

欢迎留下你的看法
共 0 条评论