Psycopg2 image not found

后端 未结 20 1542
无人及你
无人及你 2020-11-29 18:04

Trying to setup postgres with the postgres mac app and hit this error, which I haven\'t been able to solve. Any thoughts?

    ImportError: dlopen(/Users/Crai         


        
相关标签:
20条回答
  • 2020-11-29 18:44

    I was missing the postgresql client package, so I installed them with brew and that fixed this issue for me.

    brew update
    brew doctor
    brew install postgresql
    
    0 讨论(0)
  • 2020-11-29 18:44

    The solution that worked for me was to install psycopg2 with the "no-binary" option set, which tells psycopg2 to use the system libssl.

    By default psycopg2 uses its own version of libssl and it seemed to keep a dependency on an old version of the library which no longer existed after my upgrade.

    See the psycopg2 install docs for more detail about the no-binary option.

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