1. 安装python (可安装任意版本)brew install python@3.9 2. 创建虚拟环境cd ~/opt/homebrew/bin/python3.9 -m venv ai3.9 3. 激活虚拟环境source ~/ai3.9/bin/activate 4. 安装pip install xxx 黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/