美文网首页各种小技巧,小学习
安装diffuse后,报import pygtk失败的错误

安装diffuse后,报import pygtk失败的错误

作者: zouxiaoyu | 来源:发表于2019-08-06 09:11 被阅读0次

想看下diffuse效果如何,结果,在mac上用brew install diffuse后启动diffuse居然报Cannot import: pygtk No module named pygtk的错误,其他的meld软件貌似也报这个错误。想到可能是同一个问题,便搜索各种解决方案。终于找到行之有效的一种:

虽然pygtk在安装diffuse时已经作为依赖包安装上了,但它找不到。虽然我也不懂为什么。按照下面的方法,重新从pkg文件手动安装pygtk,解决。StackXXX真的很强大,you are not alone!

原始链接如下:

https://superuser.com/questions/455511/installing-meld-cannot-import-pygtk

其文字部分粘贴如下:

“The solution was to install PyGTK, directly from the pkg file in the repository:

http://sourceforge.net/projects/zero-install/files/PyGTK/2.24.0/org.pygtk.macosx.pkg/download

It worked flawlessly after that.”

相关文章

网友评论

    本文标题:安装diffuse后,报import pygtk失败的错误

    本文链接:https://www.haomeiwen.com/subject/yewbdctx.html