3

我在 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 与深思熟虑的 python 对抗。有什么建议么?

4

0 回答 0