Error code when installing psycopg2 in requirements.txt in django

后端 未结 1 1540
野的像风
野的像风 2021-01-16 09:10

I\'ve tried to manually install only the psycopg2 module. As well as with a pip3 install -r requirements.txt. If anybody has encountered this error before, please provide ap

相关标签:
1条回答
  • 2021-01-16 09:27

    gcc cannot use -lssl flag by default so you should install openssl

    brew install openssl
    export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
    export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
    

    or install precompiled binary

       pip install psycopg2-binary
    
    0 讨论(0)
提交回复
热议问题