Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mysql Connector 8.0 and Python 3.8

I am using Windows 10. I have python 3.8.2 32 bit installed. I am trying to use mysql-installer-web-community-8.0.20.0.msi the connector for Python. The connectors are grayed out and not available. The error message says Python 32-bit not installed. I see old threads claiming you need Python 3.4. The documentation here: https://dev.mysql.com/doc/connector-python/en/connector-python-versions.html claims this will work with Python 3.8.2. Do I need a different MySql installer? If not, what am I doing wrong?

Thanks, Scott

like image 433
Doo Dah Avatar asked Feb 12 '26 04:02

Doo Dah


1 Answers

I am not sure why I was using the MySQL installer to install libraries for Python. In hind-sight, that doesn't make sense. Use pip to install the drivers like

$ pip install mysql-connector-python
# or
$ python pip install mysql-connector
# or for >= Python 3.9
$ pip install mysqlclient 

It is not entirely clear what the difference is, but, the first of the three solved the problem.

like image 79
Doo Dah Avatar answered Feb 18 '26 08:02

Doo Dah



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!