-
Notifications
You must be signed in to change notification settings - Fork 442
failed to install: pip install mysqlclient (MySQL 8.0.33) #584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
it seems mysql 8.0.33 issue -> Homebrew/homebrew-core#130258 WORKAROUND -> if you use Django: Use Oracle MySQL Connector/Python 1)Download https://dev.mysql.com/downloads/connector/python/ |
It seems MySQL bug. They break mysql_config often. |
I've tried almost all available solutions on google and failed. |
|
@methane , Adding those variables worked for me. Thanks! |
@methane Thanks a lot! It works for me. |
Thanks @methane, it works for me also! |
@methane |
Do Google. I don't know your environment. |
mac os global environment run: -> in your virtualenv or other environment ->
|
@giuseppenovielli This worked! Thank you |
This worked, thank you so much!! |
I have released 2.2.0rc1 that uses |
2.2.0rc1 is fixed, following @methane previews post: # ensure pkg-config is installed
brew install pkg-config
# Follow https://pypi.org/project/mysqlclient/2.2.0rc1/ "macOS (Homebrew)" section instructions
export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
# 2.2.0rc1 installation works
pip install --no-cache mysqlclient==2.2.0rc1 |
To have a complete solution in linux... try this
or as stated in the official page
|
No need to set MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS if pkg-config works. |
Describe the bug
When try into virtualenv but also in global environments ->
pip install mysqlclient
failed to install with the follow stacktrace:
Environment
Macbook Pro M2
Python 3.9.6
MySQL Server
MySQL Client
Additional context
brew install mysqlclient -> installed successfully
https://stackoverflow.com/questions/76177559/library-not-found-for-lzlib-mac-m2-chip-pip-install-mysqlclient
The text was updated successfully, but these errors were encountered: