Python版本冲突。Jhbuild没有读Jhbuildrc?

2024-06-09 14:29:23 发布

您现在位置:Python中文网/ 问答频道 /正文

我正要为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

建议加上

^{pr2}$

行到~/.config/jhbuildrc。当我再次运行jhbuild时,它会发出相同的回溯。
我试着把文件改成~/.jhbuildrc。也不起作用。
所以,我被困在这里了。任何帮助都将不胜感激。在

我在ArchLinux上,fwiw。在


Tags: orghttpgtkreadthedocs页面latesttutorialen