Bom dia,
Estou utilizando a versão 3.6.5 do Python em um MacOS e fazendo uso de um virtualenv durante o curso. Na primeira parte do curso tudo correu bem, porém agora ao tentar instalar o mysqlclient usando o pip o seguinte erro é exibido no terminal:
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Dversion_info=(1,4,4,'final',0) -D__version__=1.4.4 -I/usr/local/Cellar/mysql/8.0.17_1/include/mysql -I/usr/local/Cellar/python/3.6.5_1/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c MySQLdb/_mysql.c -o build/temp.macosx-10.13-x86_64-3.6/MySQLdb/_mysql.o
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-3.6/MySQLdb/_mysql.o -L/usr/local/Cellar/mysql/8.0.17_1/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-x86_64-3.6/MySQLdb/_mysql.cpython-36m-darwin.so
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/nick/Desktop/Python/jogoteca/env/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/64/3dgp1j197qg8mhhj0xdy3ynr0000gn/T/pip-install-qqs_8ssk/mysqlclient/setup.py'"'"'; __file__='"'"'/private/var/folders/64/3dgp1j197qg8mhhj0xdy3ynr0000gn/T/pip-install-qqs_8ssk/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/64/3dgp1j197qg8mhhj0xdy3ynr0000gn/T/pip-record-wka7dtxc/install-record.txt --single-version-externally-managed --compile --install-headers /Users/nick/Desktop/Python/jogoteca/env/bin/../include/site/python3.6/mysqlclient Check the logs for full command output.
Já procurei a respeito no fórum do curso, mas nenhum problema relatado até agora parece ser como o meu. Desde já agradeço...