简体   繁体   中英

Unable to install mysqldb on python

I am trying to install mysqldb for python on my windows PC but come across this error: (Note I know I am using an outdated version of python but this is the version I need to use for now)

在此处输入图片说明

I don't know if you need that specific module/package. But you can get the official mysql-connector for python by specifying this package:

mysql-connector-python-rf

Works with both Python 2, and 3. ( link )

The problem is more so that MySQL-Python does not support any version of Python 3 . You should look for an alternative connector library. The error message does not mean anything, only that in the past MySQL-Python at least tried to support 3.0 - 3.2 (before 3.3 was ever released), however they gave up.

Unfortunately, I personally am not using MySQL so I cannot comment about the alternatives; however this question could be of use .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM