擅长:python、mysql、java
<p><code>apt-get install build-essential python3-dev</code></p>
<p>从uWSGI<a href="http://uwsgi-docs.readthedocs.io/en/latest/WSGIquickstart.html#installing-uwsgi-with-python-support" rel="noreferrer">documentation</a>:</p>
<blockquote>
<p>uWSGI is a (big) C application, so you need a C compiler (like gcc or clang) and the Python development headers.
On a Debian-based distro an
<code>apt-get install build-essential python-dev</code> will be enough.</p>
</blockquote>
<p>对于Python3,只需将其更改为<code>python3-dev</code>。</p>
<p><code>
$ python3 --version
Python 3.5.2
$ pip3 freeze
uWSGI==2.0.15
</code></p>