“Failed building wheel for psycopg2” - MacOSX using virtualenv and pip

前端 未结 14 1525
囚心锁ツ
囚心锁ツ 2020-12-08 18:20

I\'m attempting to make a website with a few others for the first time, and have run into a weird error when trying to use Django/Python/VirtualEnv. I\'ve found solutions to

14条回答
  •  春和景丽
    2020-12-08 18:54

    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.So let the server(heroku) should take care of it.

提交回复
热议问题