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

前端 未结 14 1078
一向
一向 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:45

    I know you are asking for development environment but if you are deploying on server say, Heroku. Just add below line in the requirements.txt of your project.

    django-heroku==0.3.1

    As this package itself will install the required packages like psycopg2 on server deployment.

提交回复
热议问题