Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > PyGreSQL Install

Reply
Thread Tools

PyGreSQL Install

 
 
goodepic
Guest
Posts: n/a
 
      01-05-2007
I successfully installed postgresql and pygresql from source on my
MacBook 2ghz Intel core duo running os x 10.4.8. However, pygresql
installed under the defualt python 2.3 installation, while I've been
upgrading and working in 2.5, and have invested too much time to go
back to 2.3. I definitely don't know where every file is, but I know
that the site-packages folder where I need pgdb to be is
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages.
This is where I have pypar, pynum, numeric, etc. PyGreSQL installed
in the default
/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages.


Anyone know where I can edit setup.py or what flags I can use to force
the install onto 2.5?

Thanks!

 
Reply With Quote
 
 
 
 
Thomas Ploch
Guest
Posts: n/a
 
      01-05-2007
goodepic schrieb:
> I successfully installed postgresql and pygresql from source on my
> MacBook 2ghz Intel core duo running os x 10.4.8. However, pygresql
> installed under the defualt python 2.3 installation, while I've been
> upgrading and working in 2.5, and have invested too much time to go
> back to 2.3. I definitely don't know where every file is, but I know
> that the site-packages folder where I need pgdb to be is
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages.
> This is where I have pypar, pynum, numeric, etc. PyGreSQL installed
> in the default
> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages.
>
>
> Anyone know where I can edit setup.py or what flags I can use to force
> the install onto 2.5?
>
> Thanks!
>


You should try:

$ python2.5 setup.py install

Normally it gets installed into the directory of the python version you
use when running setup.py. Is python 2.3 still the default on MAC OS X
10.4? I thought they switched to python 2.4.

Thomas
 
Reply With Quote
 
 
 
 
goodepic
Guest
Posts: n/a
 
      01-05-2007
Awesome! I forgot that when I did switched to root I lost my PATH,
where I'd put usr/local/bin ahead of /usr/bin, so "python" went to 2.5
instead of 2.3. Using python2.5 worked perfectly. Thanks!!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PyQt + PygreSQL Neil Zanella Python 2 08-11-2004 07:19 PM
Anyone know a good Pygresql Tutorial for Interfacing betweenPython &Postgresql Chuck Amadi Python 4 06-19-2004 05:57 AM
How to use Python + PygreSQL on a WinXP system Radu Stanciu Python 2 02-18-2004 12:53 PM
Has anybody got PyGresql working on Python 2.3 or later? Benjamin Arai Python 0 02-01-2004 05:57 PM
pygresql trewornan Python 1 06-28-2003 02:55 AM



Advertisments