为了账号安全,请及时绑定邮箱和手机立即绑定

mac执行下面命令时报错,是缺少什么包?

mac执行下面命令时报错,是缺少什么包?

长风秋雁 2018-10-24 21:18:35
mac执行下面命令时报错,缺少什么包pip install MySQL-pythoncc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. build/temp.macosx-10.13-intel-2.7/_mysql.o -L/usr/local/Cellar/mysql/5.7.19/lib -lmysqlclient -lssl -lcrypto -o build/lib.macosx-10.13-intel-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 'cc' failed with exit status 1答案已经找到env LDFLAGS='-I/usr/local/opt/openssl/include/opensll -L/usr/local/opt/openssl/lib' pip install MySQL-python
查看完整描述

1 回答

?
翻阅古今

TA贡献1780条经验 获得超5个赞

如果你装有 homebrew 的话,可以直接安装下 openssl brew install openssl

或者自己下载 openssl 的源代码编译安装


查看完整回答
反对 回复 2018-10-24
  • 1 回答
  • 0 关注
  • 651 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信