Installing psycopg2 into virtualenv when PostgreSQL is not installed on development system

前端 未结 14 1175
一向
一向 2020-12-04 09:24

Is it possible to install psycopg2 into a virtualenv when PostgreSQL isn\'t installed on my development system—MacBook Pro with OS X 10.6?

When I run

14条回答
  •  时光说笑
    2020-12-04 09:41

    All from the above doesn't work for me (OS Catalina 10.15.1)

    There was a conflict with classical postgres and homebrew version. Please delete homebrew version by command

    $ brew uninstall postgresql
    

    and then install it from the official website:

    $ sudo mkdir -p /etc/paths.d && echo /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp
    

    It is actual for a simple psycopg2 install or django-heroku package.

提交回复
热议问题