macOS 使用 Homebrew 安装 Python 3 作者: Chuwen 时间: 2020-11-24 分类: macOS # 首先搜索可用 Python 版本 ```shell brew search python ``` > 啪的一下很快啊,搜到了: ```shell chuwen@Chuwen-MBP ~ % brew search python ==> Formulae app-engine-python micropython python@3.9 boost-python python-markdown reorder-python-imports boost-python3 python-yq wxpython gst-python python@3.7 ipython python@3.8 ==> Casks awips-python kk7ds-python-runtime mysql-connector-python If you meant "python" specifically: It was migrated from homebrew/cask to homebrew/core. ``` # 我这里需要安装 3.7 版本的,所以: ```shell brew install python@3.7 ``` # 安装完成,验证安装(查看版本号?) ```shell chuwen@Chuwen-MBP ~ % python3 --version Python 3.8.2 ``` 标签: none