修复一键部署bug

This commit is contained in:
dekun
2026-05-21 15:15:11 +08:00
parent 576e8b0b12
commit a38f26d126
2 changed files with 101 additions and 18 deletions
+14
View File
@@ -31,6 +31,20 @@ cd C:\path\to\crypto_monitor
## Linux / macOS
**Ubuntu / Debian 首次部署**(若 `python -m venv``ensurepip is not available`):
```bash
apt update
apt install -y python3.10-venv python3-pip curl # 版本号与 python3 --version 一致
bash deploy/setup_env.sh
```
脚本在 **root** 下会自动尝试 `apt install python*-venv`;非 root 请先装系统包或使用:
```bash
sudo bash deploy/setup_env.sh --install-system-deps
```
```bash
cd /opt/crypto_monitor
bash deploy/setup_env.sh