擅长:python、mysql、java
<pre><code>Debian/Ubuntu
</code></pre>
<p><strong>Python 2</strong></p>
<pre><code>sudo apt install libpq-dev python-dev
</code></pre>
<p><strong>Python 3</strong></p>
<pre><code>sudo apt install libpq-dev python3-dev
</code></pre>
<p><strong>附加</strong></p>
<pre><code>If none of the above solve your issue, try
sudo apt install build-essential
or
sudo apt install postgresql-server-dev-all
</code></pre>