安装方法
安装方法
TensorClay 核心引擎以 Go 编译为静态单二进制,无运行时依赖;图形渲染后端依赖 Gnuplot 5.4+(仅在触发 Plot 时进程调用)。
系统要求
- macOS ≥ Ventura 13.0 / Linux ≥ Kernel 5.x
- 终端需支持 True Color(不支持时自动降级至 256 色)
- Gnuplot 5.4+(推荐,用于出版级出图)
编译安装
git clone https://github.com/lhc/tensorclay.git
cd tensorclay
go build -ldflags="-s -w" -o clay ./cmd/clay跨平台编译
交叉编译至 Linux 服务器:
GOOS=linux GOARCH=amd64 go build -o clay_linux ./cmd/clay启动
./clay启动序列:终端能力探测 → 配置文件加载(./.tensorclay.json / ~/.config/tensorclay/config.json)→ Gnuplot 可用性验证 → TUI 引擎初始化。底栏显示 SYSTEM_READY 表示初始化成功。
常见启动问题
- 显示控制字符而非 UI:
export TERM=xterm-256color - 界面颜色异常:确认终端模拟器支持 True Color
- Gnuplot 渲染失败:升级至 5.4+