我正要为gtk+3设置pygobject,这个http://python-gtk-3-tutorial.readthedocs.org/en/latest/install.html#id2页面说我需要Jhbuild。我在前面安装了它。但是,它给了我回溯
Traceback (most recent call last):
File "/usr/bin/jhbuild", line 6, in <module>
import __builtin__
ImportError: No module named '__builtin__'这显然是由于python的错误版本(我的默认版本是python3)。
所以,我找到了这个页面https://wiki.gnome.org/Projects/Jhbuild/Dependencies/ArchLinux
这就建议添加
os.environ['PYTHON'] = '/usr/bin/python2' 行到~/.config/jhbuildrc,我就是这么做的。当我再次运行jhbuild时,它会抛出相同的回溯。
我尝试将文件放入~/.jhbuildrc。也不管用。
所以,我被困在这里了。任何帮助都将不胜感激。
我用的是Arch Linux。
发布于 2015-11-10 04:33:27
您可能希望在为jhbuild本身执行./autogen.sh --simple-install时设置PYTHON=/usr/bin/python2。jhbuildrc文件仅用于它构建的内容。
https://stackoverflow.com/questions/33591560
复制相似问题