install Psycopg2 on mac osx 10.9.5

后端 未结 12 661
清酒与你
清酒与你 2020-11-27 04:42

I\'m trying to install Psycopg2 on my Mac-book. I still get the same error. I found a lot of same questions on Stack Overflow but no answer seems to work. I think it is outd

12条回答
  •  -上瘾入骨i
    2020-11-27 05:35

    To install psycopg2 you need have installed server before( I have installed PostgresApp)

    Run manually command including the path of pg_config program in PATH env variable, in my case:

    export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin/
    

    and then run

    pip3 install psycopg2
    

    EDIT:

    Check directory of pg_config:

    which pg_config
    

提交回复
热议问题