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