【问题标题】:Getting the error Python.framework/Versions/2.7/Python probably after MacOS Monterey 12.3.1 update可能在 MacOS Monterey 12.3.1 更新后出现错误 Python.framework/Versions/2.7/Python
【发布时间】:2022-08-21 17:56:42
【问题描述】:

在使用 Apple 芯片的 MacBook 上的 MacOS Monterey 更新 12.3.1 之后,所有 Git 推送尝试都可能失败。

% git push
dyld[56684]: Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
  Referenced from: /usr/local/Cellar/openssh/7.9p1/bin/ssh
  Reason: tried: \'/System/Library/Frameworks/Python.framework/Versions/2.7/Python\' (no such file), \'/Library/Frameworks/Python.framework/Versions/2.7/Python\' (no such file)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

ssh-keygen 命令也有同样的问题。

可能是因为 Apple 已经从 macOS 中删除了 Python。

我尝试安装 Python 2.7,但没有帮助。

    标签: python python-2.7 apple-silicon macos-monterey


    【解决方案1】:

    在尝试下载 Python 2.7 和其他各种东西一天后,我通过重命名 Python 框架目录来解决这个问题:/System/Library/Frameworks/Python.framework/Versions/3.6 从 3.6 到 2.5。 它解决了这个问题。

    所以这可能是一个热修复,但是我不建议这样做

    【讨论】:

      【解决方案2】:

      试试brew install openssh。这个对我有用

      【讨论】:

        猜你喜欢
        • 2014-06-13
        • 1970-01-01
        • 2015-05-12
        • 2016-05-08
        • 2022-07-23
        • 2022-07-22
        • 1970-01-01
        • 1970-01-01
        • 2022-11-25
        相关资源
        最近更新 更多