brew 不可用,重新安装

大致步骤
1.删除旧的brew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

2.安装新的brew

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

3.删除通过dmg文件安装的python3版本

系统python路径
/System/Library/Frameworks/Python.framework/Versions/
手动安装python路径
/Library/Frameworks/Python.framework/Versions/

(1)删除Python框架,参考
sudo rm -rf /Library/Frameworks/Python.framework/Versions/x.x
(2)删除Python程序
sudo rm -rf “/Applications/Python x.x”
(3)删除/usr/local/bin目录下的Python连接
3.用homebrew安装python3不同版本
brew install python3

添加评论

Loading