擅长:python、mysql、java
<p>由于包维护程序出错,pip无法安装mysql python connector。<a href="http://bugs.mysql.com/bug.php?id=76063" rel="nofollow">Here is the relevant issue filed against that package's bug tracker.</a>尽管从技术上讲,它应该可以用</p>
<p><code>pip install --allow-external mysql-connector-python --allow-unverified mysql-connector-python mysql-connector-python
</code></p>
<p>如果包维护程序未能<a href="https://www.python.org/dev/peps/pep-0438/#api-for-submitting-external-distribution-urls" rel="nofollow">correctly register the external URLs to PyPI</a>,则此操作不起作用。</p>
<p>注意,<a href="https://github.com/PyMySQL/PyMySQL" rel="nofollow">PyMySQL</a>似乎是一个完全的替代品,它是一个纯Python MySQL驱动程序,实现了pythondbapi2.0规范。另外,PyMySQL看起来是主动维护的,上传到PyPI(而不是托管在外部url上),并且是在更慷慨的MIT许可下(而不是GPLv2许可)。</p>