擅长:python、mysql、java
<ol>
<li><p>安装/更新Xcode开发工具</p>
<pre><code>xcode-select --install
</code></pre></li>
<li><p>查询postgres路径</p>
<pre><code>find / -name pg_config 2>/dev/null
</code></pre></li>
<li><p>安装psycopg2,使用步骤2中的路径。我的是'/usr/local/cell/postgresql/9.5.0/bin/pg_config'</p>
<pre><code>PATH=$PATH:/usr/local/Cellar/postgresql/9.5.0/bin/ pip install psycopg2
</code></pre></li>
</ol>