简体   繁体   中英

Is there a way to install MySQL-python on python 3?

I have seen lots of similar questions on stackoverflow, but while all of them advice switching to other packages that support python 3.

The issue is following: the project that I have to run on python3 uses mysql package, which appears to be a "virtual package" (whatever that means) and actually installs MySQL-python package, which is not an easy task - if at all possible.

So, is there a way to install MySQL-python on python3?

No, but if you're looking to interface with mysql in python 3, just use mysqlclient . Its a pure python interface to mysql, and I use it myself in production. Libraries like sqlalchemy also support it.

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