Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

pip3 安装 uwsgi遇到异常:

Exception: you need a C compiler to build uWSGI

解决办法

yum install gcc

安装完c解释器后没有 又提示没找到python文件

plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: No such file or directory

解决办法

安装python3-dev,正常这么安装 提示找不到,先搜索

yum search python3 dev

uwsgi1

因为当前版本是python3.6, 所以最终找到python36-devel 并安装

yum install python36-devel

uwsgi2