Just would like to share. The following code worked for me:
env LDFLAGS='-L/usr/local/lib -L/usr/local/opt/openssl/lib
-L/usr/local/opt/readline/lib' pip install psycopg2==2.5.2
I am using macOS Sierra and psql 9.6.1.
I got the lib path from the pg_config
command.
More Related Contents:
- How to fix error “ERROR: Command errored out with exit status 1: python.” when trying to install django-heroku using pip [duplicate]
- ‘pip’ is not recognized as an internal or external command
- pg_config executable not found
- Django: Deploying an application on Heroku with sqlite3 as the database
- How to install psycopg2 with “pip” on Python?
- Error on “pip install -U channels” command using for otree (Running setup.py bdist_wheel for twisted … error)
- DatabaseError: current transaction is aborted, commands ignored until end of transaction block?
- H14 error in heroku – “no web processes running”
- How can I modify Procfile to run Gunicorn process in a non-standard folder on Heroku?
- How to set up a PostgreSQL database in Django
- No web processes running Django in heroku
- django installation: cannot use pip to install django on linux(ubuntu)
- How to install virtualenv without using sudo?
- WARNING: Running pip as the ‘root’ user
- Bypass confirmation prompt for pip uninstall
- Command not found: django-admin.py
- Where does pip install its packages?
- Heroku fails to install pywin32 library
- Django staticfiles not found on Heroku (with whitenoise)
- can’t pip install mysql-python
- Heroku: ModuleNotFoundError :No module named ‘requests’
- How do I package a python application to make it pip-installable?
- How to quote a string value explicitly (Python DB API/Psycopg2)
- django makemigrations and migrate on heroku server don’t create tables
- No web processes running Error – Deploying Django on Heroku
- Deploying Django to Heroku (Psycopg2 Error)
- Django: sudden DB reset after Heroku sleep
- how to pip uninstall with virtualenv on heroku cedar stack?
- Collectstatic error while deploying Django app to Heroku
- “Failed building wheel for psycopg2” – MacOSX using virtualenv and pip