近期開始使用python ,在mac上安裝了mysqlclient谷遂,過程非常艱險夫凸,于是記錄了一下如下的報錯:
1
ld: library not found for -lzstd
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
解決方案如下:
https://pythonmana.com/2021/07/20210711145618334h.html
或者
brew install zstd
CFLAGS="-I$(brew --prefix)/include" LDFLAGS="-L$(brew --prefix)/lib" pip install mysqlclient