<分区>
我发现的所有 MySql 模块都与 Python 2.7 或 3.4 兼容,但与 3.5 不兼容。我可以通过任何方式将 MySql 模块与最新的 Python 版本一起使用吗?
回答:
mysql-connector-python 的常规 Python 版本无法工作,但 rf 版本可以。
python -m pip install mysql-connector-python-rf
标签 mysql python-3.x
<分区>
我发现的所有 MySql 模块都与 Python 2.7 或 3.4 兼容,但与 3.5 不兼容。我可以通过任何方式将 MySql 模块与最新的 Python 版本一起使用吗?
回答:
mysql-connector-python 的常规 Python 版本无法工作,但 rf 版本可以。
python -m pip install mysql-connector-python-rf
最佳答案
Python 努力向前兼容。为 3.4 编写的纯 python 模块应该与 3.5 一起工作;二进制包可能有效,您只需尝试一下即可。
关于mysql - Python 3.4 的 MySql 模块可以与 3.5 一起使用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33524731/