macOS安装使用Python

MacOS安装Python

本地系统版本是10.15.6

命令行安装
  1. 搜索Python

brew search python

  1. 安装Python

brew install python@3.7

admin@admindeMBP ~ % brew search python3
==> Formulae
boost-python3       python@3.7          python@3.8          python@3.9

If you meant "python3" specifically:
It was migrated from homebrew/cask to homebrew/core.
admin@admindeMBP ~ % brew install python@3.7
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/gdbm-1.19.catalina.
#=#=#                                                                         
curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/manifests/1.19
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdbm/blobs/sha256:a3e43170a1d84
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/mpdecimal-2.5.1.cat
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/openssl%401.1-1.1.1
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/readline-8.1.catali
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/sqlite-3.35.4.catal

curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.35.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:a1aee82c8de
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/xz-5.2.5.catalina.b
######################################################################## 100.0%
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/python%403.7-3.7.10

curl: (22) The requested URL returned error: 404 
Warning: Bottle missing, falling back to the default domain...
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.7/manifests/3.7.10_3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.7/blobs/sha256:838cb30
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Installing dependencies for python@3.7: gdbm, mpdecimal, openssl@1.1, readline, sqlite and xz
==> Installing python@3.7 dependency: gdbm
==> Pouring gdbm-1.19.catalina.bottle.tar.gz
tar: Error opening archive: Failed to open '/Users/admin/Library/Caches/Homebrew/downloads/518faa90b0eabcd7ae54ba16397e0454a6a5b64f3709313a6c13050dfe46106f--gdbm-1.19.catalina.bottle.tar.gz'
安装包安装

下载地址:

https://www.python.org/downloads/mac-osx/

在这里插入图片描述

参考链接

  1. mac下安装Python3.*(最新版本)
  2. 在PyCharm中使用python3
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值