目前比较好的Python版本是Python3.4.4,既能兼顾MySQL又能兼顾Django
What Python version can I use with Django?
Django version | Python versions |
---|---|
1.8 | 2.7, 3.2 (until the end of 2016), 3.3, 3.4, 3.5 |
1.9, 1.10 | 2.7, 3.4, 3.5 |
1.11 | 2.7, 3.4, 3.5, 3.6 |
2.0 | 3.5+ |
参考网址:https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
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 Reference
Connector/Python Version | MySQL Server Versions | Python Versions | Connector Status |
---|---|---|---|
2.2 | 5.7, 5.6, 5.5 | 3.3 and higher, 2.7 | Developer Milestone |
2.1 | 5.7, 5.6, 5.5 | 3.3 and higher, 2.7, 2.6 | Recommended version |
2.0 | 5.7, 5.6, 5.5 | 3.3 and higher, 2.7, 2.6 | GA, Supported |
1.2 | 5.7, 5.6, 5.5 (5.1, 5.0, 4.1) | 3.1 and higher, 2.7, 2.6 | GA, Supported |
参考网址:https://dev.mysql.com/doc/connector-python/en/connector-python-versions.html