使用python3.6安装uwsgi 老出错找不到 Python.h
plugins/python/uwsgi_python.h:2:20: fatal error: Python.h: No such file or directory compilation terminated.
网上搜了很多方法都没解决。仔细研究一番之后发现Python版本造成的,
那么安装3.6的python-dev,大概几分钟
$ sudo apt-get install libpython3.6-dev
再次执行
$ pip install uwsgi

本文介绍了解决在Python 3.6环境下安装uWSGI时遇到的找不到Python.h的问题。通过安装正确的Python开发库,最终成功安装了uWSGI。
3930

被折叠的 条评论
为什么被折叠?



