
The installation of mysql-connector-c is available for reference: mysqlclient pipenv install mysqlclient on MacOSX - Shan Dou - Medium Referring to the blogger's operation, the correct method is obtained: The Right Wayīefore that, make sure you install mysql-connector-c. Gcc -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-2.7/MySQLdb/_mysql.o -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.9-x86_64-2.7/MySQLdb/_mysql.soįind this blog post. Try pip install mysqlclient again or make an error, but this error is different, as follows: /Library/Frameworks/amework/Versions/2.7/include/python2.7/intobject.h:34:46: note: passing argument to parameter here Libs="$libs -lmysqlclient -lssl -lcrypto" The toilet looked at mysqlclient's documentation There are hints in the document: Change Gcc -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-2.7/MySQLdb/_mysql.o -lmysqlclient -lgsl -lcrypto -o build/lib.macosx-10.9-x86_64-2.7/MySQLdb/_mysql.soĬlang: error: linker command failed with exit code 1 (use -v to see invocation)Įrror: command 'gcc' failed with exit status 1Īfter many attempts at search results on google, it can't be solved. PyAPI_FUNC(PyObject *) PyInt_FromString(char*, char**, int) bin/sh: mariadb_config: command not foundįile "/private/var/folders/tj/vjwl0qpd6l5ct6bdjgwyk1rh0000gp/T/pip-install-abwz3tky/mysqlclient/setup.py", line 16, in įile "/private/var/folders/tj/vjwl0qpd6l5ct6bdjgwyk1rh0000gp/T/pip-install-abwz3tky/mysqlclient/setup_posix.py", line 61, in get_configįile "/private/var/folders/tj/vjwl0qpd6l5ct6bdjgwyk1rh0000gp/T/pip-install-abwz3tky/mysqlclient/setup_posix.Solve the problem of pip installation mysqlclient failure on mac os Systematic overview: ERROR: Command errored out with exit status 1:Ĭommand: /usr/local/opt/python/bin/python3.7 -c 'import sys, setuptools, tokenize sys.argv = '"'"'/private/var/folders/tj/vjwl0qpd6l5ct6bdjgwyk1rh0000gp/T/pip-install-abwz3tky/mysqlclient/setup.py'"'"' _file_='"'"'/private/var/folders/tj/vjwl0qpd6l5ct6bdjgwyk1rh0000gp/T/pip-install-abwz3tky/mysqlclient/setup.py'"'"' f=getattr(tokenize, '"'"'open'"'"', open)(_file_) code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"') f.close() exec(compile(code, _file_, '"'"'exec'"'"'))' egg_info -egg-base /private/var/folders/tj/vjwl0qpd6l5ct6bdjgwyk1rh0000gp/T/pip-install-abwz3tky/mysqlclient/pip-egg-infoĬwd: /private/var/folders/tj/vjwl0qpd6l5ct6bdjgwyk1rh0000gp/T/pip-install-abwz3tky/mysqlclient/ Install mysqlclient in python3 system this errorĮRROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
