美文网首页
【Python】macOS安装配置Python环境

【Python】macOS安装配置Python环境

作者: 盐果儿 | 来源:发表于2023-11-30 23:03 被阅读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

相关文章

网友评论

      本文标题:【Python】macOS安装配置Python环境

      本文链接:https://www.haomeiwen.com/subject/fpnxgdtx.html