Enthought Canopy python安装pygtk

时间:2013-06-14 03:08:01

标签: pygtk enthought rhel5 canopy

我在Red Hat 5.9上使用最新的enthought canopy 1.0.1 它安装在股票python 2.4.3

的顶部

我有一些针对pygtk编写的应用程序,并希望将它们与Enthought版本一起使用。顺便说一句,pygtk与原生的python 2.4.3一起运行很好。

Canopy似乎没有通过GUI安装pygtk。当我使用easy_install时,我收到了这个错误:

错误讯息:

~/Enthought/Canopy_64bit/User/bin/easy_install
[john@localhost site-packages]$ easy_install pygtk
Searching for pygtk
Reading http://pypi.python.org/simple/pygtk/
Reading http://www.pygtk.org/
Reading http://www.pygtk.org
Reading http://www.daa.com.au/~james/software/pygtk/
Reading http://www.daa.com.au/~james/pygtk/
Reading http://ftp.acc.umu.se/pub/gnome/binaries/win32/pygtk/2.24/
Best match: pygtk 2.24.0
Downloading http://pypi.python.org/packages/source/P/PyGTK/pygtk-2.24.0.tar.bz2#md5=a1051d5794fd7696d3c1af6422d17a49
Processing pygtk-2.24.0.tar.bz2
Writing /tmp/easy_install-_GU7D6/pygtk-2.24.0/setup.cfg
Running pygtk-2.24.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_GU7D6/pygtk-2.24.0/egg-dist-tmp-qria80
error: Setup script exited with ********************************************************************
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file.    *
****************************************************************

当我使用./configure和make

尝试“支持的方式”时

我收到此错误:

checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers

它找到了正确的python,但我无法确定如何安装enthought标头。 在canopy中有一个Debug Headers 0.1包,它不会安装,因为Paste安装时出错。

感谢您的帮助,

试图让pygtk对抗enthought python。 有什么建议?

0 个答案:

没有答案