mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user