问题
当执行
pipenv install mysqlclient
出现如下错误
An error occurred while installing mysqlclient==1.3.13!
...
...
...
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
...
...
...
解决方案
- 首先确保你的mac上安装了mysql
brew install/upgrade/reinstall mysql
- 在terminal下输入下面内容
brew info openssl
openssl is keg-only