MAC uses brew given installation python3: zsh: command not found: brew

Use MAC installation python3 error, suggesting zsh: the Command not found: brew , the first reaction is to brew reinstall uninstalled.

1. Uninstall the incorrect report found that:

Uninstall command: / usr / bin / Ruby -e "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall )"

 

2. After you reinstall a big push print information, or can not be used;

3. Look after online posts, was said to be off the network leading to incomplete installation, the installation directory is generated in a number of incomplete directory for a bit to find a directory, found that there appeared when several installation directory name, so together we deleted.

mdfind homebrew

 

 

Measuring installation prompt information is as follows:

 

4. Delete the directory created when installing Homebrew:

sudo rm -rf Cellar Frameworks Homebrew

5. Reinstall:

Installation command: / bin / bash -c "$ (curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh )"

6. The installation was successful, you can view the version:

 

7. Install python success

brew install python3

 

 

https://github.com/Homebrew/install 

 

Guess you like

Origin www.cnblogs.com/Grace-gao/p/12652709.html