目前比较好的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