[PYTHON] What to do if pip install mysqlclient fails on MacOS

There are several reasons for failure. The solution this time is the solution when the following is done but it still fails.

--The latest Xcode command line tools are installed --Latest pip installed --Mysql installed --OpenSSL installed

I get the following error even though there is no problem above.

    ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command '/usr/bin/gcc' failed with exit status 1

In this case, you can install it by executing the installation by the following method.

LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient     

via Can't install mysqlclient on MacOS · Issue #131 · PyMySQL/mysqlclient-python

Recommended Posts

What to do if pip install mysqlclient fails on MacOS
What to do if `pip install matplotlib` fails on Mac
Note: What to do if pip install fails
What to do if pip install fails in Xcode 5.1
What to do if you can't pip install mysqlclient
What to do if pip install fails to install dependent libraries
What to do if SciPy installation fails on CentOS
What to do if you can't install pyaudio with pip #Python
What to do if you get a UnicodeDecodeError with pip install
What to do if pip cannot be installed
What to do if you can't install with pip in babun environment
What to do if a UnicodeDecodeError occurs in pip
What to do if CERTIFICATE_VERIFY_FAILED occurs when nltk.download () is done on macOS pyhon
What to do if scrapy doesn't work after installing scrapy with pip on mac
What to do if yum breaks
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
Pip install --ugrade pip fails on Windows
What to do if "export" keeps appearing on terminal when trying to put Python on macOS
What to do with Magics install
How to install graph-tool on macOS
What to do if package installation fails when deploying to heroku
What to do if you can't use WiFi on Linux
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if Python doesn't work on Git for Windows
What to do if the inode is exhausted on EC2 Linux
What to do if PyAudio cannot be installed on Python 3.7, 3.8, 3.9 on Windows
What to do if grep: empty (sub) expression appears on Mac grep
`pip install pygraphviz` fails to find graphviz
I was addicted to pip install mysqlclient
Install python on xserver to use pip
How to install cx_Oracle on macOS Sierra
What to do if the yum command fails to set locale, defaulting to C
What to do if you get stuck during Anaconda installation on Linux
What to do if pyenv install does not proceed with an error
What to do if you get Could not fetch URL 443 with pip
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
What to do if mod_fcgid cannot resolve UnicodeEncodeError
What to do if rails s doesn't work
Run pip install on MacOS Python 3.7 or later
What to do if atom autocomplete-python doesn't work
What to do if Docker-sync suddenly stops working
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
[Python] What to do if an error occurs in pip (pyinstaller, pyautogui, etc.)
What to do if Japanese language support is not completely installed on Ubuntu 16.04
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
Install pip on Mavericks
Notes on what to do if "macOS 11 or later required!" Appears in Big Sur or pyarrow2.0.0 cannot be installed
Install pip / pip3 on Ubuntu
When pip install fails
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
If you get hooked on pip install dlib on OSX
What to do if sys / cdefs.h does not exist
What to do if pyenv is not enabled (zsh)
What to do if the Microsoft Store opens even if you run python on Windows
What to do if ENOENT: no such file or directory appears during npm install
What to do if Python IntelliSense is not displayed in VS Code on Windows
How to install and use pyenv, what to do if you can't switch python versions
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if Jupyter Notebook on WSL does not start automatically in your browser
[AWS] What to do when you want to pip with Lambda