Created
April 17, 2015 14:04
-
-
Save lym/456ec863d3fc3c63cab4 to your computer and use it in GitHub Desktop.
psycopg: Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just install libpq-dev | |
$ sudo apt-get install libpq-dev |
Coll! Thanks!
You saved my day 👍
if you can not install libpq-dev
, you should upgrade ubuntu
first.
- install
libpq-dev
:
# ubuntu 14.04, fix for psycopg2:
# require do:
sudo apt-get upgrade -y
# do:
sudo apt install libpq-dev python-dev -y
# do:
sudo apt-get install postgresql postgresql-contrib -y
- then,
install psycopg2
must be ok.
pip install psycopg2
thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, its works like a charm 💯