Re: Trouble installing psycopg2

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Augori <augori(at)gmail(dot)com>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trouble installing psycopg2
Date: 2013-09-29 19:18:15
Message-ID: 52487CF7.4040101@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/29/2013 11:06 AM, Augori wrote:
> Hmm maybe you're right. I just tried starting over again from a
> directory under joshmoe, following the tutorial again, but I get
> permssions errors at every turn.
>
> # wgethttp://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
> # tar xf Python-2.7.3.tar.bz2
> # cd Python-2.7.3
> # ./configure --prefix=/usr/local
> # make && makealtinstall
>

>
> Since it's already their, I thought maybe I could skip to these steps
> but they give permission errors as well
>
> # wgethttp://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
> # tar xf distribute-0.6.35.tar.gz
> # cd distribute-0.6.35
> # python2.7 setup.py install
>
> I guess this is the reason I started installing things from root.
>

The above steps should be run as root preferably via sudo. You have
already done that as well as the step that installed virtualenv. My
suggestion was to run the below as joshmoe in joshmoes home directory:

virtualenv-2.7 --distribute someproject

source someproject/bin/activate
(someproject)# python --version

Then install psycopg2 in that virtualenv.

This assumes you want to run psycopg2 in a virtualenv. I am not sure
what the end point of all this i.e. how you want to use psycopg2?

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2013-09-30 06:48:15 Re: Quotes, double quotes...
Previous Message Augori 2013-09-29 18:06:30 Re: Trouble installing psycopg2