docs: add --seed flag to uv venv for portable shebangs

The --seed flag makes uv generate shebangs using #!/usr/bin/env python3
instead of absolute paths, allowing venvs to be moved.
This commit is contained in:
LIghtJUNction
2026-03-23 03:03:55 +08:00
parent 1d2469f0ae
commit 47aa6ea2cd
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ git clone https://github.com/AstrBotDevs/AstrBot
cd AstrBot
# 创建虚拟环境
uv venv
uv venv --seed
source .venv/bin/activate # Linux/macOS
# 或: .venv\Scripts\activate # Windows