目前比较好的Python版本是Python3.4.4,既能兼顾MySQL又能兼顾Django
What Python version can I use with Django?Django versionPython versions1.82.7, 3.2 (until the end of 2016), 3.3, 3.4, 3.5
1.9, 1.102.7, 3.4, 3.5
1.112.7, 3.4, 3.5, 3.6
2.03.5+
参考网址:
MySQL Connector/Python Versions
实际上MySQL5.7.18对Python的Connector最高仅支持到Python3.4,Python3.5及以上版本是不能用的
The following table summarizes the available Connector/Python versions. For series that have reached General Availability (GA) status, development releases in the series prior to the GA version are no longer supported.
Table 3.1 Connector/Python Version ReferenceConnector/Python VersionMySQL Server VersionsPython VersionsConnector Status2.25.7, 5.6, 5.53.3 and higher, 2.7Developer Milestone
2.15.7, 5.6, 5.53.3 and higher, 2.7, 2.6Recommended version
2.05.7, 5.6, 5.53.3 and higher, 2.7, 2.6GA, Supported
1.25.7, 5.6, 5.5 (5.1, 5.0, 4.1)3.1 and higher, 2.7, 2.6GA, Supported
参考网址:
https://dev.mysql.com/doc/connector-python/en/connector-python-versions.html
博客介绍了Python版本与Django、MySQL的适配情况。目前较好的Python版本是3.4.4,能兼顾二者。不同Django版本支持不同Python版本,如Django 1.8支持2.7、3.2 - 3.5等。而MySQL 5.7.18对Python的Connector最高仅支持到Python 3.4。
139

被折叠的 条评论
为什么被折叠?



