获取错误python.framework/versions/2.7/python大概是Macos Monterey 12.3.1更新之后
在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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一天尝试下载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
尝试
brew install openssh
。它对我有用Try
brew install openssh
. It works for me