Gnome Python插件的眼睛不会自动生成,因为检查PYGTK失败了

时间:2009-09-20 13:09:00

标签: pygtk

呈现症状:autogen禁用了slideshowshuffle和pythonconsole的构建,报告“没有python支持”。平台是Ubuntu 9.04,Jaunty Jackalope;侏儒2.26.1。

日志提取:

checking for a Python interpreter with version >= 2.3... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages
checking for PYGTK... no
configure: WARNING: Python not found, disabling python support

安装了python和pygtk的证据:

Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) 
[GCC 4.3.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygtk
>>> 

我注意到PYGTK的大小写,这对于环境变量很常见。没有PYGTK环境变量。

  

您的搜索 - “PYGTK环境   变量“ - 不匹配任何   文档。

来自/ usr / share / doc / python-gtk2-doc / html的树中PYGTK的grep没有返回任何行。

1 个答案:

答案 0 :(得分:1)

尝试安装“python-gtk2-dev”软件包。您可以确保使用

pkg-config --list-all | grep pygtk-2.0

我认为,你在python中使用的那个是“python-gtk2”。