I want pygtk to be configured to Python 2.7 in my centOS5.4 system(The default python version is Python 2.4 in centos 5)
So I installed Python 2.7 with --prefix=/home/shrihari/local/lib/Python2.7 to my local area and then installed pygobject2.28 and then pygtk2.24 with the --prefix=/home/shrihari/local/lib/Python2.7.
But when I run python2.7 interpreter I am able to import pygtk but, when I try to import gtk it says "no module named gtk."
I have set environment variables PYTHONPATH=/home/shrihari/local/lib/Python2.7/lib/python2.7/site-packages and PYTHON=/home/shrihari/local/lib/Python2.7/bin/python.
So can you please tell me how I configure pygtk for python 2.7?
The versions I tried to install are:
Python - 2.7.6
pygobject - 2.28.3
pygtk - 2.24.0
It would be very helpful if you provide me the steps to install pygtk for python 2.7 and its dependencies from scratch.
Pygtk Installation
Issues related to software problems.
Return to “CentOS 5 - Software Support”
Jump to
- CentOS General Purpose
- ↳ CentOS - FAQ & Readme First
- ↳ Announcements
- ↳ CentOS Social
- ↳ User Comments
- ↳ Website Problems
- CentOS 8 / 8-Stream / 9-Stream
- ↳ 8 /8-Stream / 9-Stream - General Support
- ↳ 8 /8-Stream / 9-Stream - Hardware Support
- ↳ 8 /8-Stream / 9-Stream - Networking Support
- ↳ 8 /8-Stream / 9-Stream - Security Support
- CentOS 7
- ↳ CentOS 7 - General Support
- ↳ CentOS 7 - Software Support
- ↳ CentOS 7 - Hardware Support
- ↳ CentOS 7 - Networking Support
- ↳ CentOS 7 - Security Support
- CentOS Legacy Versions
- ↳ CentOS 5
- ↳ CentOS 5 - General Support
- ↳ CentOS 5 - Software Support
- ↳ CentOS 5 - Hardware Support
- ↳ CentOS 5 - Networking Support
- ↳ CentOS 5 - Server Support
- ↳ CentOS 5 - Security Support
- ↳ CentOS 5 - Oracle Installation and Support
- ↳ CentOS 5 - Miscellaneous Questions
- ↳ CentOS 6
- ↳ CentOS 6 - General Support
- ↳ CentOS 6 - Software Support
- ↳ CentOS 6 - Hardware Support
- ↳ CentOS 6 - Networking Support
- ↳ CentOS 6 - Security Support