+
+ {t("跑起来需要什么环境", "What it needs to run")}
+
+
+ {t(
+ "在装任何依赖之前先看这个:要多新的 Python/Node、要不要另外开数据库之类的服务、要不要英伟达显卡、挑不挑操作系统。如果有 Docker 那条,通常是最省事的路。",
+ "Read this before installing anything: how new your Python/Node must be, whether a database or other background service has to be running, whether an NVIDIA GPU is expected, and whether your operating system works. When a Docker entry shows up, it is usually the easiest way.",
+ )}
+
+
+ {project.run_requirements!.map((r, i) => {
+ const catLabel =
+ r.category === "python"
+ ? "Python"
+ : r.category === "node"
+ ? "Node.js"
+ : r.category === "service"
+ ? t("外部服务", "Service")
+ : r.category === "gpu"
+ ? "GPU"
+ : r.category === "os"
+ ? t("操作系统", "OS")
+ : "Docker";
+ return (
+ -
+
+ {r.name}
+
+ {catLabel}
+
+ {!r.required && (
+
+ {t("可选/部分功能", "optional")}
+
+ )}
+
+
{r.note}
+ {r.detail}
+
+ );
+ })}
+
+
+ )}
+
{/* Third-party dependencies — what libraries it installs, each in plain words */}
{project && (project.dependencies?.length ?? 0) > 0 && (