【发布时间】:2019-04-27 00:32:06
【问题描述】:
我最近升级到 Mac OS Mojave,现在无法安装 MySQL-Python:
pip install MySQL-Python
...
clang -bundle -undefined dynamic_lookup build/temp.macosx-10.13-x86_64-2.7/_mysql.o -L/usr/local/opt/mysql-client/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-x86_64-2.7/_mysql.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
堆栈跟踪显示未找到“ssl”库。我不确定这意味着什么,因为我安装了最新的 XCode 和 OpenSSL。任何建议表示赞赏。
【问题讨论】:
标签: pip mysql-python macos-mojave