mac执行下面命令时报错,缺少什么包
pip install MySQL-python
cc -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
翻阅古今
相关分类