From 91b187903c7df47c932066f37187bf4e58e8dadf Mon Sep 17 00:00:00 2001 From: Debug Assistant Date: Wed, 18 Feb 2026 16:08:52 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=B7=BB=E5=8A=A0=20uv=20=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index 4806821..bc01cfc 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,16 @@ ## 安装 +### 方式一:使用 uv(推荐) + +```bash +# 创建虚拟环境并安装依赖 +uv venv +uv pip install -r requirements.txt +``` + +### 方式二:使用 pip + ```bash pip install -r requirements.txt ``` @@ -61,6 +71,10 @@ cp .env.example .env 双击运行 `TurnstileSolver.bat` 或执行: ```bash +# 使用 uv(推荐) +uv run python api_solver.py --browser_type camoufox --thread 5 --debug + +# 或使用传统方式 python api_solver.py --browser_type camoufox --thread 5 --debug ``` @@ -71,6 +85,10 @@ python api_solver.py --browser_type camoufox --thread 5 --debug 新开一个终端,运行: ```bash +# 使用 uv(推荐) +uv run grok.py + +# 或使用传统方式 python grok.py ```