Mac安装Homebrew
2022.7.9更新
转知乎答案:https://www.zhihu.com/question/35928898/answer/133380744
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
本地软件库列表:brew ls
查找软件:brew search google(其中google替换为要查找的关键字)
查看brew版本:brew -v 更新brew版本:brew update
安装cask软件:brew install --cask firefox 把firefox换成你要安装的
原答案:
安装Homebrew官方地址: https://brew.sh
终端粘贴:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- 注意:通过homebrew install安装应用最先是放在/usr/local/Cellar/目录下。
Python安装位置 | |
---|---|
Homebrew安装python | /usr/local/Cellar/ |
Mac系统自带python路径为 | /System/Library/Frameworks/Python.framework/Version |