基础服务系列-Mac 安装Python3

一笑奈何 提交于 2020-04-29 17:03:14

前言

本例采用brew安装。未安装brew,参考Mac 安装Brew

安装步骤

search

brew search python3

==> Formulae
boost-python3                         python3 ✔                             python@3 ✔                            python@3.8

If you meant "python3" specifically:
It was migrated from homebrew/cask to homebrew/core.

Install

brew install python3

bash_profile

vi ~/.bash_profile

alias python="/usr/local/bin/python3"

source ~/.bash_profile

查看版本

python

Python 3.7.6 (default, Apr  2 2020, 12:41:48) 
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!