MAC 安装psycopg2报错ld: library not found for -lssl

pip3 install psycopg2python

报错:
ld: library not found for -lsslmysql

解决参考:https://github.com/PyMySQL/mysqlclient-python/issues/169git

安装前定义这两个环境变量就行了github

export LDFLAGS="-L/usr/local/opt/openssl/lib"sql

export CPPFLAGS="-I/usr/local/opt/openssl/include"ide

相关文章
相关标签/搜索