I install pip install mysqlclient==1.6.4 --no-cache-dir
But an error occurs:
ld: library 'ssl' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
How to fix it?
I tried to install it like this:
brew unlink mariadb
brew install mariadb-connector-c
ln -s /usr/local/opt/mariadb-connector-c/bin/mariadb_config /usr/local/bin/mysql_config
pip install mysqlclient
rm /usr/local/bin/mysql_config
brew unlink mariadb-connector-c
brew link mariadb
But there is a problem:
ImportError: dlopen(/.../venv/lib/python3.6/site-packages/MySQLdb/_mysql.cpython-36m-darwin.so, 0x0002): symbol not found in flat namespace '_mysql_affected_rows'
New contributor
Ilya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.