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.
Try installing using apt-get:
sudo apt-get install python-psycopg2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With