| 12345678910111213141516171819202122 |
- #!/bin/sh
- set -eu
- ROOT=$(CDPATH= cd -- "$(dirname "$0")" && pwd)
- cd "$ROOT"
- mkdir -p logs
- echo "$(date -u +%Y-%m-%dT%H:%M:%SZ) INSTALL" > logs/install.log
- PY=""
- for c in python3.13 python3.12 python3.11; do
- if command -v "$c" >/dev/null 2>&1; then
- PY=$(command -v "$c")
- break
- fi
- done
- if [ -z "$PY" ]; then
- echo "没有找到 Python 3.11/3.12/3.13。"
- echo "若你没有安装 Python,请改用 Linux 便携包:解压后运行 ./START_HERE.sh。"
- echo "missing python" >> logs/install.log
- exit 1
- fi
- echo "using $PY" >> logs/install.log
- "$PY" "$ROOT/install_kit.py"
- echo "安装成功。接下来可以运行 ./RUN_DEMO.sh 或 ./SELF_TEST.sh。"
|