Skip to content

fix(ga): ga scripts prefer project .venv over system python#454

Open
slowlyo wants to merge 1 commit into
lsdefine:mainfrom
slowlyo:fix-ga-script-prefer-venv-v2
Open

fix(ga): ga scripts prefer project .venv over system python#454
slowlyo wants to merge 1 commit into
lsdefine:mainfrom
slowlyo:fix-ga-script-prefer-venv-v2

Conversation

@slowlyo
Copy link
Copy Markdown

@slowlyo slowlyo commented May 21, 2026

修复内容

修复 ga 启动脚本优先使用项目 .venv 中的 Python,避免使用系统 Python 导致的 PEP 668 问题。

  • ga: 优先使用 .venv/bin/python,回退到 python
  • ga.cmd: 优先使用 .venv\Scripts\python.exe,回退到 python
  • ga_cli.cmd: 同上

关联 Issue

Closes #433

解决的问题

  • Homebrew Python 等外部管理环境导致的 externally-managed-environment 错误
  • ga update 使用系统 Python 而非项目 venv 的问题

@slowlyo slowlyo changed the title fix: ga scripts prefer project .venv over system python fix(ga): ga scripts prefer project .venv over system python May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ga script should prefer project's .venv over system python

1 participant