mac M1通过homebrew安装python3报错Error: Command failed with exit 128: git

2022/6/26 1:24:04

本文主要是介绍mac M1通过homebrew安装python3报错Error: Command failed with exit 128: git,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

fatal: not in a git directory
Error: Command failed with exit 128: git

只需要运行

git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask

然后再次安装,即可。

 



这篇关于mac M1通过homebrew安装python3报错Error: Command failed with exit 128: git的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程