Non-programmer needs help with PyGTK-2.0.0
Holger Türk
htx1 at gmx.de
Fri May 28 17:19:05 EDT 2004
Mark Mitchell wrote:
>>Where's the python standard library?
>>in /usr/lib/python?.? or /usr/local/lib/python?.? ?
>
> I have a /usr/lib/python2.3 that has a bunch of .py .pyo .pyc files, and
Python got installed with prefix /usr
> I also have a;
> $ ls -l /usr/local/lib/python2.3/
> total 1
> drwxr-xr-x 3 root root 192 2004-05-26 23:56 site-packages/
>
>>Where did it install pygtk?
>>/usr/lib/python?.?/site-packages or /usr/local/lib/python?.?/site-packages ?
>
> I'm not sure what exactly you're referring to here. Looking at my install
> log, I have a number of .py .pyc .pyo files in
> usr/local/lib/python2.3/site-packages/gtk-2.0/gtk/ and
> usr/local/share/pygtk/2.0/
pygtk got installed with prefix /usr/local
_Your_ Python installation doesn't look there by default.
>>What's your --prefix for ./configure ?
>
> I didn't use one, just straight ./configure.
Which means /usr/local.
Try setting PYTHONPATH to
/usr/local/lib/python2.3:\
/usr/local/lib/python2.3/site-packages:\
/usr/local/lib/python2.3/site-packages/gtk-2.0
If that doesn't work, do
./configure --prefix=/usr
instead of
./configure
as Sridhar R already pointed out.
Greetings,
Holger
More information about the Python-list
mailing list