MacBook-Pro:~ sunyifeng$ brew upgrade python
==> Upgrading 1 outdated package, with result:
python 3.6.4_4
==> Upgrading python
==> Installing dependencies for python: gdbm, openssl, sqlite, xz
==> Installing python dependency: gdbm
==> Downloading https://homebrew.bintray.com/bottles/gdbm-1.14.1_1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gdbm-1.14.1_1.high_sierra.bottle.tar.gz
/usr/local/Cellar/gdbm/1.14.1_1: 20 files, 555.7KB
==> Installing python dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2n.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2n.high_sierra.bottle.tar.gz
=&
用brew upgrade pythonMac系统自带python2.7升级为3.6
最新推荐文章于 2022-09-08 11:18:19 发布