解决方法是安装python-dev,这是Python的头文件和静态库包
正在读取软件包列表... 完成
正在分析软件包的依赖关系树 正在读取状态信息... 完成 下列软件包是自动安装的并且现在不需要了: libcap2:i386 libxtst6:i386使用'sudo apt autoremove'来卸载它(它们)。将会同时安装下列软件: libexpat1 libexpat1:i386 libexpat1-dev libpython-dev libpython-stdlib libpython2.7 libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib python python-minimal python2.7 python2.7-dev python2.7-minimal建议安装: python-doc python-tk python2.7-doc binfmt-support下列【新】软件包将被安装: libexpat1-dev libpython-dev libpython2.7-dev python-dev python2.7-dev下列软件包将被升级: libexpat1 libexpat1:i386 libpython-stdlib libpython2.7 libpython2.7-minimal libpython2.7-stdlib python python-minimal python2.7 python2.7-minimal升级了 10 个软件包,新安装了 5 个软件包,要卸载 0 个软件包,有 1153 个软件包未被升级。有 81 个软件包没有被完全安装或卸载。需要下载 34.1 MB 的归档。解压缩后会消耗 43.0 MB 的额外空间。您希望继续执行吗? [Y/n] Y
*********************************
sudo pip install uwsgi
Collecting uwsgi
Using cached uwsgi-2.0.15.tar.gzInstalling collected packages: uwsgi Running setup.py install for uwsgi ... doneSuccessfully installed uwsgi-2.0.15