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"
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"
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta