擅长:python、mysql、java
<p>如果安装了错误的库,应该使用<code>mysqlclient</code>。在</p>
<pre><code>pip install mysqlclient
</code></pre>
<p>我有一个django项目在我的Mac上使用它。在</p>
<p><strong>编辑</strong></p>
<p>安装pip包时应该是<a href="https://sourabhbajaj.com/mac-setup/Python/virtualenv.html" rel="nofollow noreferrer">using virtualenv</a>。在</p>