Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will a MySql module for Python 3.4 work with 3.5? [closed]

All of the MySql modules I've found are compatible with Python 2.7 or 3.4, but none with 3.5. Any way I can use a MySql module with the newest Python version?

ANSWER:

The regular Python versions of mysql-connector-python would not work, but the rf version did.

python -m pip install mysql-connector-python-rf

like image 981
ProgrammingWithRandy Avatar asked Dec 11 '25 23:12

ProgrammingWithRandy


1 Answers

Python tries hard to be forward compatible. A pure-python module written for 3.4 should work with 3.5; a binary package may work, you just have to try it and see.

like image 65
Ethan Furman Avatar answered Dec 13 '25 16:12

Ethan Furman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!