使用brew 安装python如下所示:
liaowenxiongdeMacBook-Air:desktop liaowenxiong$ brew install Python
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/python%403.9-3.9.6.big_sur.bottle.tar.gz
#=#=#
curl: (22) The requested URL returned error: 404
https://mirrors.ustc.edu.cn/homebrew-bottles/python%403.9-3.9.6.big_sur.bottle.tar.gz
这个没下载成功,貌似。怎么解决?
最后的结果:
==> Pouring python@3.9-3.9.6.big_sur.bottle.tar.gz
tar: Error opening archive: Failed to open '/Users/liaowenxiong/Library/Caches/Homebrew/downloads/1503ea0d4bebf5c4171238e6305a24490176217f10a9145ee8d7e9b627ca14c6--python@3.9-3.9.6.big_sur.bottle.tar.gz'
Error: Failure while executing; `tar --extract --no-same-owner --file /Users/liaowenxiong/Library/Caches/Homebrew/downloads/1503ea0d4bebf5c4171238e6305a24490176217f10a9145ee8d7e9b627ca14c6--python@3.9-3.9.6.big_sur.bottle.tar.gz --directory /private/tmp/d20211027-16536-mklv60` exited with 1. Here's the output:
tar: Error opening archive: Failed to open '/Users/liaowenxiong/Library/Caches/Homebrew/downloads/1503ea0d4bebf5c4171238e6305a24490176217f10a9145ee8d7e9b627ca14c6--python@3.9-3.9.6.big_sur.bottle.tar.gz
失败了
不要用中科大的镜像
用哪个?
@liaowenxiong: 用原来的就可以,Updating Homebrew...就Ctrl+C干掉,就开始下载了。不过python还是建议直接去官网安装。