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

相關文章
相關標籤/搜索