2015年7月2日 星期四

Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.

在 virtualenv裡裝psycopg2出現了一些問題 Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.

解決方式


(venv)root@JoeServer# sudo apt-get install libpq-dev python-dev

(venv)root@JoeServer# pip install psycopg2

沒有留言:

張貼留言