Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting uwsgi
Downloading http://mirrors.aliyun.com/pypi/packages/e7/1e/3dcca007f974fe4eb369bf1b8629d5e342bb3055e2001b2e5340aaefae7a/uwsgi-2.0.18.tar.gz (801kB)
|████████████████████████████████| 808kB 6.4MB/s
Building wheels for collected packages: uwsgi
Building wheel for uwsgi (setup.py) ... error
ERROR: Complete output from command /root/.virtualenvs/py_web/bin/python3 -u -c 'import setuptools, ten)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__
ERROR: /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'descripti
warnings.warn(msg)
running bdist_wheel
......
Running setup.py clean for uwsgi
Failed to build uwsgi
Installing collected packages: uwsgi
Running setup.py install for uwsgi ... error
......
ERROR: Command "/root/.virtualenvs/py_web/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'ead().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' in-install-headers /root/.virtualenvs/py_web/include/site/python3.5/uwsgi" failed with error code 1 in /
解决方法安装 python3-dev
apt-get install python3-dev