Session 4 课前准备
AI 炒股分析系统——从方法论到可运行 Skill
Session 4 Pre-class Setup
AI Stock Analysis System: From Framework to Runnable Skill

这节课在 第三课(Claude Design + Code)基础上新增两个工具:Git + Python 3。yfinance 课后做跟我做练习时由 Claude Code 帮你安装,不用提前装。
预计准备时间:10 分钟。
This session adds two tools on top of Session 3 (Claude Design + Code): Git and Python 3. yfinance will be installed by Claude Code when you do the post-class follow-along exercise — no need to pre-install.
Estimated setup time: 10 minutes.

S2/S3 已经准备好了,不用重复Already Done in S2/S3 — Skip These

如果 Claude Code 还没装,先按第二课课前准备的第一步装好 Claude Code,再回来继续。If Claude Code is not installed yet, follow Step 1 of the Session 2 pre-class setup to install it, then come back here.

S4 新增工具一览New Tools for S4

工具Tool 用途Purpose 费用Cost
Git必装Required 本地版本控制;Claude Code 内部也依赖它Local version control; Claude Code relies on it internally 免费Free
Python 3必装Required 课程数据拉取脚本(ticker_scan.py)的运行环境;yfinance 上课时由 Claude Code 帮你装Runtime for the course data script (ticker_scan.py); yfinance will be installed by Claude Code during class 免费Free

第 1 步Step 1 安装 GitInstall Git

  1. 打开 git-scm.com/download/winGo to git-scm.com/download/win
  2. 下载安装包,双击运行,一路点 Next(默认选项即可)Download the installer, double-click to run, and click Next through all screens (defaults are fine)
  3. 安装完后打开 PowerShell命令提示符,输入: After installation, open PowerShell or Command Prompt and type:
    git --version
  1. 打开 终端(Terminal),输入: Open Terminal and type:
    xcode-select --install
  2. 弹出对话框点 安装,等待完成(含 Git)Click Install in the dialog and wait for it to complete (Git is included)
  3. 验证:Verify:
    git --version
✅ 看到类似 git version 2.x.x 即为成功。 ✅ You should see something like git version 2.x.x — that means success.

第 2 步Step 2 安装 Python 3Install Python 3

💡 yfinance 不需要提前装——做课后「跟我做」练习时,输入一条提示词让 Claude Code 帮你装即可。这步只需要装 Python 3 本体。 💡 You don't need to pre-install yfinance — when you do the post-class "follow-along" exercise, one prompt will have Claude Code install it for you. This step only requires Python 3 itself.

2a. 检查 Python 是否已安装2a. Check if Python is already installed

打开终端 / PowerShell,输入:Open Terminal / PowerShell and type:

python --version

如果看到 Python 3.x.x,跳到 3b 直接装 yfinance。
如果报错或显示 Python 2,按下方步骤安装。
If you see Python 3.x.x, skip to 3b and install yfinance directly.
If it errors or shows Python 2, follow the steps below to install.

  1. 打开 python.org/downloadsGo to python.org/downloads
  2. 下载最新 Python 3(点黄色大按钮)Download the latest Python 3 (click the big yellow button)
  3. 安装时 必须勾选 "Add Python to PATH"(默认不勾,注意!)During installation, check "Add Python to PATH" (it's unchecked by default — don't miss this!)
  4. 安装完重新开一个 PowerShell 窗口,再运行 python --versionAfter installation, open a new PowerShell window and run python --version
  1. 打开终端,输入:Open Terminal and type:
    brew install python
    (没有 Homebrew?先运行 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" (No Homebrew? First run /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)")
  2. 验证:python3 --versionVerify: python3 --version
✅ 验证:python --version 显示 Python 3.x.x 即成功。yfinance 上课时 Claude Code 帮你装。 ✅ Verify: python --version shows Python 3.x.x — that's all you need. yfinance will be installed by Claude Code during class.

全部验证(1 分钟)Full Verification (1 minute)

claude --version          # Claude Code 正常Claude Code working
git --version             # Git 已装Git installed
python --version          # Python 3.x

yfinance 不用提前验证,上课时 Claude Code 安装后再验。No need to verify yfinance in advance — Claude Code installs it during class.

上课前检查清单Pre-class Checklist

三项全 OK,上课见!(yfinance 做课后跟我做练习时 Claude Code 帮你装)All three done — see you in class! (yfinance will be installed by Claude Code when you do the post-class follow-along exercise)

💬 遇到问题发到微信群,上课前有人帮你看。 💬 Questions? Post in the WeChat group — someone will help before class starts.

Session 4 · AI 炒股分析系统——从方法论到可运行 Skill
Austin Xu · 北美华人 Claude AI 课程 · elitecoach101.com
Session 4 · AI Stock Analysis System: From Framework to Runnable Skill
Austin Xu · Claude AI Course for North American Chinese Professionals · elitecoach101.com