错误:未找到类似命名的公式.错误:没有名称为“python"的可用公式或木桶; [英] Error: No similarly named formulae found. Error: No available formula or cask with the name "python"

查看:276
本文介绍了错误:未找到类似命名的公式.错误:没有名称为“python"的可用公式或木桶;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我使用的是 macOS Big Sur.所以我输入:

So, I'm using macOS Big Sur. So I typed:

python --version

python --version

Python 2.7.16

Python 2.7.16

brew 安装 python

brew install python

当我想通过终端更新我的 python 时收到此错误消息.

I got this error message when I want to update my python via my terminal.

Error: No similarly named formulae found.
Error: No available formula or cask with the name "python".
It was migrated from homebrew/cask to homebrew/core.

我想将其更新为 Python 3,因此当我在 VSC 上运行我的命令时.我可以只输入 python 而不是 python3.此错误消息是什么意思?

I would like to update it to Python 3, so when I run my commands on VSC. I can just type python instead of python3. What does this error message mean?

推荐答案

在终端中运行此命令:

rm -fr $(brew --repo homebrew/core)

然后尝试:

 brew install python3

它将安装 python 3.9.

it will install python 3.9.

这篇关于错误:未找到类似命名的公式.错误:没有名称为“python"的可用公式或木桶;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆