今天突然想学学python,发现同事学的时候用的python3我也就想在自己的Mac电脑上装一下,好吧,我运行命令 brew install python3,嗯哼,好吧,刚开始好好的,可是后来报了很多错,这下蒙了,经过百度和谷歌的双重搜索,我又尝试更新homebrew发现根本更新不了,报错!报错!报错!后来干脆想卸掉homebrew重装吧,于是乎鼓捣了一下 重装步骤如下: 1、删除旧的homebrew2、安装新的homebrewruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
3、开始python3的安装/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
然后就可以坐等了,我等等,看着日志打印一片一片的但没看到错,一会又是下载又是安装的,心里那个美啊,好吧,最后安装完成。 经过了测试brew install python3
ok一切顺利解决。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 darwin Type "help", "copyright", "credits" or "license" for more information.
查看原文:https://www.liuandy.cn/%e9%9a%8f%e7%ac%94/2017/12/08/2021.html
mac更新导致brew不能使用
最新推荐文章于 2025-07-16 22:29:01 发布