Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: No similarly named formulae found. Error: No available formula or cask with the name "python"

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

python --version

Python 2.7.16

brew install 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.

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?

like image 394
francescowang Avatar asked Feb 03 '21 17:02

francescowang


People also ask

How to fix ‘no module named ‘dotenv’ error?

The ModuleNotFoundError: No module named ‘dotenv’ error occurs when we try to import the ‘ python-dotenv ‘ module without installing the package or if you have not installed it in the correct environment. We can resolve the issue by installing the python-dotenv module by running the pip install python-dotenv command.

How do I fix modulenotfounderror no module named ctypes?

Solving ModuleNotFoundError: no module named ‘_ctypes’ There are a couple of reasons why this error might be reflected on your computer. First, you need to ensure that while importing the ctypes module , you are typing the module name correctly because python is a case-sensitive language and will throw a modulenotfounderror in that case too.

What is modulenotfounderror in Python?

ModuleNotFoundError is raised when python was not successful in importing a particular module. When an error occurs in importing a module while using: ‘import module_name,’ a ModuleNotFoundError is raised. But, when there is an error while using


1 Answers

Run this command in terminal:

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

Then try:

 brew install python3

it will install python 3.9.

like image 98
Ngoc Nguyen Avatar answered Sep 18 '22 01:09

Ngoc Nguyen