MAC 安装psycopg2报错ld: library not found for -lssl
时间:2019-12-16 23:43:33
收藏:0
阅读:169
pip3 install psycopg2
报错:
ld: library not found for -lssl
解决参考:https://github.com/PyMySQL/mysqlclient-python/issues/169
安装前定义这两个环境变量就好了
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
原文:https://blog.51cto.com/cstsncv/2459130
评论(0)