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
最新推荐文章于 2024-08-30 14:06:16 发布
本文介绍如何在Mac系统上通过brew工具将默认的Python2.7升级到Python3.6,包括检查Python版本和进行升级操作。
摘要由CSDN通过智能技术生成