Installing collected packages: mysqlclient usr/bin/clang -bundle -undefined dynamic_lookup -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-rpath,/Users/yuguanglin/anaconda3/lib -L/Users/yuguanglin/anaconda3/lib -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-rpath,/Users/yuguanglin/anaconda3/lib -L/Users/yuguanglin/anaconda3/lib -L/usr/local/opt/openssl/lib -I/usr/local/opt/openssl/include -arch x86_64 build/temp.macosx-10.9-x86_64-3.6/_mysql.o -L/Users/yuguanglin/anaconda3/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.9-x86_64-3.6/_ $ libsĬlang: error: no such file or directory: '$'Ĭlang: error: no such file or directory: 'libs'Įrror: command '/usr/bin/clang' failed with exit status 1 usr/bin/clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -Wstrict-prototypes -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/usr/local/opt/openssl/include -Dversion_info=(1,3,12,'final',0) -D_version=1.3.12 -I/usr/local/Cellar/mysql-connector-c/6.1.11/include -I/Users/yuguanglin/anaconda3/include/python3.6m -c _mysql.c -o build/temp.macosx-10.9-x86_64-3.6/_mysql.o errorĬomplete output from command /Users/yuguanglin/anaconda3/bin/python -u -c "import setuptools, tokenize file='/private/var/folders/ml/xgv9v8gn6kl2l4yj3xmtyxnc0000gn/T/pip-build-z961_iww/mysqlclient/setup.py' f=getattr(tokenize, 'open', open)( file) code=f.read().replace('\r\n', '\n') f.close() exec(compile(code, file, 'exec'))" bdist_wheel -d /var/folders/ml/xgv9v8gn6kl2l4yj3xmtyxnc0000gn/T/tmp8tr14eqmpip-wheel-python-tag cp36:Ĭreating build/lib.macosx-10.9-x86_64-3.6Ĭopying mysql_exceptions.py -> build/lib.macosx-10.9-x86_64-3.6Ĭreating build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬopying MySQLdb/ init.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬopying MySQLdb/compat.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬopying MySQLdb/connections.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬopying MySQLdb/converters.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬopying MySQLdb/cursors.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬopying MySQLdb/release.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬopying MySQLdb/times.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdbĬreating build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬopying MySQLdb/constants/ init.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬopying MySQLdb/constants/CLIENT.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬopying MySQLdb/constants/CR.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬopying MySQLdb/constants/ER.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬopying MySQLdb/constants/FIELD_TYPE.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬopying MySQLdb/constants/FLAG.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬopying MySQLdb/constants/REFRESH.py -> build/lib.macosx-10.9-x86_64-3.6/MySQLdb/constantsĬreating build/temp.macosx-10.9-x86_64-3.6 Running setup.py bdist_wheel for mysqlclient. Ii)add environment veriables(brew info openssl)Įxport LDFLAGS="-L/usr/local/opt/openssl/lib"Įxport CPPFLAGS="-I/usr/local/opt/openssl/include"īuilding wheels for collected packages: mysqlclient Modified to Create options libs="-L$pkglibdir" libs="$libs -lmysqlclient -lssl -lcrypto" Origin: Create options libs="-L$pkglibdir" libs="$libs -l "
I) modify file: /usr/local/bin/mysql_config (which mysql_config)