首页 新闻 搜索 专区 学院

MacOS安装python失败

0
悬赏园豆:10 [已解决问题] 解决于 2021-11-04 07:43

使用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的主页 liaowenxiong | 初学一级 | 园豆:103
提问于:2021-10-27 23:10
< >
分享
最佳答案
0

不要用中科大的镜像

收获园豆:10
轩_雨 | 菜鸟二级 |园豆:227 | 2021-10-28 09:37

用哪个?

liaowenxiong | 园豆:103 (初学一级) | 2021-10-28 18:10

@liaowenxiong: 用原来的就可以,Updating Homebrew...就Ctrl+C干掉,就开始下载了。不过python还是建议直接去官网安装。

轩_雨 | 园豆:227 (菜鸟二级) | 2021-10-28 18:20
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册