#安装python3
brew install python3 
看到下图表示安装python3成功:
 
#将python3 加入环境变量
export PATH=$PATH:/opt/homebrew/bin/
#查看python 版本
python3 --version
#查看pip 版本
pip3 --version
#更新python源
pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
#使用pip 安装库
pip3 install Pillow


![[LeetCode周赛复盘] 第 361 场周赛20230906](https://img-blog.csdnimg.cn/cb5596704c134191b4de441520da9ef0.png)
















