修复一键部署bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user