mac更新导致brew不能使用

来源:互联网 发布:超神平刷软件 编辑:程序博客网 时间:2024/06/03 09:25
今天突然想学学python,发现同事学的时候用的python3我也就想在自己的Mac电脑上装一下,好吧,我运行命令 brew install python3,嗯哼,好吧,刚开始好好的,可是后来报了很多错,这下蒙了,经过百度和谷歌的双重搜索,我又尝试更新homebrew发现根本更新不了,报错!报错!报错!后来干脆想卸掉homebrew重装吧,于是乎鼓捣了一下重装步骤如下:1、删除旧的homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
2、安装新的homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
3、开始python3的安装
brew install python3
然后就可以坐等了,我等等,看着日志打印一片一片的但没看到错,一会又是下载又是安装的,心里那个美啊,好吧,最后安装完成。经过了测试
localhost:~ liuxxxx$ python3 //下边为打印输出Python 3.6.3 (default, Oct  4 2017, 06:09:38) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwinType "help", "copyright", "credits" or "license" for more information.
ok一切顺利解决。

查看原文:https://www.liuandy.cn/%e9%9a%8f%e7%ac%94/2017/12/08/2021.html
原创粉丝点击