【Python】macOS安装配置Python环境

2023-11-30  本文已影响0人  盐果儿

安装Homebrew

1. 从网上下载安装包,用命令行安装

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

2. 将Homebrew添加到PATH中

(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/ningan/.zprofile

eval "$(/opt/homebrew/bin/brew shellenv)"

3. 运行 brew help 开始使用homebrew

安装Python

1. 直接命令行安装Python3

brew install python

上一篇 下一篇

猜你喜欢

热点阅读