美文网首页实用Mac技巧
2021-08-10 修复homebrew的python@3.9

2021-08-10 修复homebrew的python@3.9

作者: 大象同学 | 来源:发表于2021-08-10 09:02 被阅读0次

    最近在用homebrew安装的时候出现了python@3.9: wrong number of arguments (given 1, expected 0)错误,在网上翻了一会儿终于找到了解法,贴出来供大家参考。

    The exact commands to fix this:
    sudo rm -rf /Library/Developer/CommandLineTools
    sudo xcode-select --switch /Applications/Xcode-beta.app
    ... and then rerun the brew install:
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

    注意,第二个指定xcode的地方,我操作的时候是把-beta删除的,要不然找不到APP。

    弄完后再安装就直接搞定了。祝好运!

    相关文章

      网友评论

        本文标题:2021-08-10 修复homebrew的python@3.9

        本文链接:https://www.haomeiwen.com/subject/ejlxbltx.html