【问题标题】:Meld, pygtk on Mac OSX在 Mac OSX 上融合、pygtk
【发布时间】:2023-03-19 07:16:01
【问题描述】:

我正在尝试在 Mac OSX 上安装 meld,我使用了 macports 并安装了 meld 和 pygtk,但是当我运行它时,这就是我得到的

$ meld
Couldn't bind the translation domain. Some translations won't work.
'module' object has no attribute 'bindtextdomain'
Cannot import: pygtk
No module named pygtk

所以我尝试使用 pip 来获取 pygtk

$ pip install pygtk
Downloading/unpacking pygtk
Downloading pygtk-2.24.0.tar.bz2 (2.4MB): 2.4MB downloaded
Running setup.py egg_info for package pygtk
********************************************************************
* Building PyGTK using distutils is only supported on windows. *
* To build PyGTK in a supported way, read the INSTALL file.    *
********************************************************************
Complete output from command python setup.py egg_info:
********************************************************************

* Building PyGTK using distutils is only supported on windows. *

* To build PyGTK in a supported way, read the INSTALL file. *

********************************************************************

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/0y/8w4qlr0d6tv6_jgk87x53fcw0000gn/T/pip_build_frazras/pygtk

我不确定是什么导致了该错误或其他操作,我希望您能就下一步尝试的步骤提供一些指导。

【问题讨论】:

  • only supported on windows 表示 Microsoft Windows。下载pygtk-2.24.0.tar.bz2,解压和read the INSTALL file

标签: python macos pip meld


【解决方案1】:

我决定建立一个本地端口。只需下载 dmg 文件并像使用任何 Mac 应用程序一样安装它。

这里是:https://github.com/yousseb/meld/releases/tag/osx-v1

希望你们觉得它有用...

【讨论】:

【解决方案2】:

重新安装所有融合依赖项对我有用。

brew rm --force gobject-introspection pygobject py2cairo pygtk rarian meld
brew cask install meld

【讨论】:

  • 在 2019 年 4 月修复损坏的 Mac OSX dmg 安装对我来说非常有用
猜你喜欢
  • 2017-08-23
  • 1970-01-01
  • 2015-11-03
  • 1970-01-01
  • 2012-01-17
  • 2011-11-16
  • 2015-09-01
  • 2019-06-15
  • 2011-04-05
相关资源
最近更新 更多