Mac OS Sierra virtualenv (python 2.7) pip install mysqlclient error

半腔热情 提交于 2019-12-03 12:46:34

The answer was installing dev tools using:

xcode-select --install

In my case I needed to do two steps:

xcode-select --install

as @howevilweare says AND also pip install with the brew installed openssl using an env command:

env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip install mysqlclient
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!