newbie : python path setting on linux

Anand Ganesh anandg at
Sun Feb 18 14:06:46 EST 2001

	I downloaded the python gtk bindings and compiled the module.
I've a set of files in the directory ~/tmp/pygtk-0.6.6. Now I try to 
run the examples in ~/tmp/pygtk-0.6.6/examples/simple say
It says :
ImportError: No module named _gtk

Now, I tried fiddling with PYTHONPATH and PYTHONHOME. I set PYTHONHOME to
~/tmp/pygtk-0.6.6 and PYTHONPATH to ./ (b'cos PYTHONHOME is prefixed ?).
Anyways, didnt work. Same error. Infact printing sys.path I find that it
doesnt have ~/tmp/pygtk-0.6.6 on it at all.

I'm totally confused. I dont have root perms to install the gtk module
in the standard places...any help appreciated.


More information about the Python-list mailing list