Skip to content

Commit 6e36a07

Browse files
authored
Merge pull request #180 from kaykouo/dev
fix: 更新激活虚拟环境的命令为 'poetry env activate'
2 parents fefc012 + d0061a5 commit 6e36a07

6 files changed

Lines changed: 313 additions & 13 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ iwr -useb https://raw.githubusercontent.com/CJackHwang/AIstudioProxyAPI/main/scr
203203
4. **激活虚拟环境**:
204204
```bash
205205
# 方式1: 激活 shell (推荐日常开发)
206-
poetry shell
206+
poetry env activate
207207
208208
# 方式2: 直接运行命令 (推荐自动化脚本)
209209
poetry run python gui_launcher.py

docs/development-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ curl -sSL https://install.python-poetry.org | python3 -
2525
poetry install --with dev
2626

2727
# 4. 激活虚拟环境
28-
poetry shell
28+
poetry env activate
2929

3030
# 5. 安装 Pyright (可选,用于类型检查)
3131
npm install -g pyright
@@ -126,7 +126,7 @@ poetry env info
126126
poetry env info --path
127127

128128
# 激活虚拟环境
129-
poetry shell
129+
poetry env activate
130130

131131
# 在虚拟环境中运行命令
132132
poetry run python script.py

docs/installation-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ poetry install --with dev
8383

8484
```bash
8585
# 激活 Poetry 创建的虚拟环境
86-
poetry shell
86+
poetry env activate
8787

8888
# 或者在每个命令前加上 poetry run
8989
poetry run python --version

0 commit comments

Comments
 (0)