PDA

View Full Version : [ubuntu] Compile code (PyGTK) for a compiled version of Python



wcyang
April 7th, 2011, 04:06 PM
How can I compile PyGTK for a compiled version of Python?

In the past, I may have compiled the following version of Python:
/usr/local/bin/python2.6
I tried compiling PyGTK using "configure, make, sudo make install.'

When I ran the above version of Python and typed "import pygtk", the following message appeared:
ImportError: No module named pygtk
When I typed "python2.6 setup.py build", the following message appeared:
************************************************** ******************
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file. *
************************************************** ******************
The INSTALL file talks about "./configure; make; make install."

Do I need to change some options for "configure?"

EpicSceptic
May 31st, 2011, 12:40 PM
I have a similar issue. When I try installing pygtk on my virtualenv with

pip install pygtk

It downloads and when it is installing I get the same error message stating:

Building PyGTK using distutils is NOT SUPPORTED

I thought there might be something wrong with pip but you used a different installation method(I assume) and yet get the same problem?

I updated setuptools and pip and build-essentials etc. Nothing seems to work.

Any help/advice on this?