Python requires mysqlclient v 21, but updated brew package is v 22

463 views Asked by At

I made a big mistake, updated brew packages (my python packages are also up to date)

And now in brew there is only version 22 of mysqlclient in default mysql v 8.1.0

But python still requires v21 of mysqlclient.

So it looks for /usr/local/Cellar/mysql/8.1.0/lib/libmysqlclient.21.dylib

But there is only /usr/local/Cellar/mysql/8.1.0/lib/libmysqlclient.22.dylib

So how should i manga this?

1

There are 1 answers

2
kunal On

I had the same issue where my app was trying to find v21 but my system has v22 after Sonoma update. I guess this was because I installed mysql using brew install mysql which installed a non-compatible version. For me this worked in letting my app run :

brew install [email protected]
brew link [email protected]