Ive been reading the Django Book and its great so far, unless something doesn't work properly. I have been trying for two days to install the psycogp2 plugin with no luck.
i navigate to the unzipped directory and run setup.py install and it returns "You must have postgresql dev for building a serverside extension or libpq-dev for client side."
I don't know what any of this means, and google returns results tossing a lot of terms I don't really understand.
Ive been trying to learn django for abut a week now plus linux so any help would be great. Thanks
Btw, I have installed postgresql and pgadminIII from installer pack.
I also tried sudo apt-get post.... and some stuff happens...but Im lost.
I'm using pip as a part of my deployment process, so using apt-get wasn't a viable option for me.
I was able to run
sudo apt-get install libpq-dev
And remove python-psycopg2 from apt-get.
Then
pip install psycopg2
worked fine for me.
尝试使用apt-get进行安装:
sudo apt-get install python-psycopg2
I'm working on Xubuntu (12.04) and I have encountered the same error when I wanted to install django-toolbelt
. I solved this error with the following operations :
I hope this informations may be helpful for someone else.
sudo apt-get install python-psycopg2应该可以正常工作,因为它也为我提供了解决方案。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.