为了账号安全,请及时绑定邮箱和手机立即绑定

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb

错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb

守着星空守着你 2023-05-23 16:37:41
我正在安装mitmproxybrew reinstall mitmproxy错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!brew reinstall pygobject3  gtk+3错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!错误:无法从 /usr/local/opt/pygtk/.brew/pygtk.rb 获取运行时依赖项!文件/usr/local/opt/pygtk/.brew/pygtk.rb存在且其内容为:class Pygtk < Formula  desc "GTK+ bindings for Python"  homepage "http://www.pygtk.org/"  url "https://download.gnome.org/sources/pygtk/2.24/pygtk-2.24.0.tar.bz2"  sha256 "cd1c1ea265bd63ff669e92a2d3c2a88eb26bcd9e5365e0f82c896e649f206912"  revision 1  option :universal  depends_on "pkg-config" => :build  depends_on "glib"  depends_on "gtk+"  depends_on "atk"  depends_on "pygobject"  depends_on "py2cairo"  depends_on "libglade" => :optional  def install    ENV.append "CFLAGS", "-ObjC"    ENV.universal_binary if build.universal?    system "./configure", "--disable-dependency-tracking",                          "--prefix=#{prefix}"    system "make", "install"    # Fixing the pkgconfig file to find codegen, because it was moved from    # pygtk to pygobject. But our pkgfiles point into the cellar and in the    # pygtk-cellar there is no pygobject.    inreplace lib/"pkgconfig/pygtk-2.0.pc", "codegendir=${datadir}/pygobject/2.0/codegen", "codegendir=#{HOMEBREW_PREFIX}/share/pygobject/2.0/codegen"    inreplace bin/"pygtk-codegen-2.0", "exec_prefix=${prefix}", "exec_prefix=#{Formula["pygobject"].opt_prefix}"  end  test do    (testpath/"codegen.def").write("(define-enum asdf)")    system "#{bin}/pygtk-codegen-2.0", "codegen.def"  endendbrew doctor
查看完整描述

1 回答

?
桃花长相依

TA贡献1860条经验 获得超8个赞

基于 brew doctor 在这里你去:

brew uninstall pygtk pygobject
brew install pyk+3 pygobject3
brew install mitmproxy


查看完整回答
反对 回复 2023-05-23
  • 1 回答
  • 0 关注
  • 101 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信