获取错误python.framework/versions/2.7/python大概是Macos Monterey 12.3.1更新之后

发布于 2025-01-22 14:48:17 字数 677 浏览 4 评论 0原文

在MacOS Monterey更新12.3.1与Apple Silicon上的MacOS更新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命令的同样问题。

可能是由于苹果已将Python从Macos删除的事实。

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

All attempt of Git push fails probably after MacOS Monterey update 12.3.1 on MacBook with Apple silicon.

% 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.

The same problem with ssh-keygen command.

Probably it is due to the fact that Apple has removed Python from macOS.

I tried to install Python 2.7 but it didn't help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梅窗月明清似水 2025-01-29 14:48:17

一天尝试下载Python 2.7和其他各种内容后,我通过重命名Python Framework Directory:/system/library/frameworks/python.frameworks/versions/3.6从3.6到2.5解决了此问题。
它解决了问题。

因此,这可能是一个热门修复,但是我不建议这样做

After a day trying to download Python 2.7 and various other things, I solved this issue by renaming Python framework directory: /System/Library/Frameworks/Python.framework/Versions/3.6 from 3.6 to 2.5.
It fixed the problem.

So this might be a hot fix, but I can't recommend doing it

爱已欠费 2025-01-29 14:48:17

尝试brew install openssh。它对我有用

Try brew install openssh . It works for me

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文