Skip to content

uv 极速本地安装 ​

OneTTS 深度采用 uv 作为原生 Python 包与虚拟环境管理器。


⚡ 基于 uv 的极速部署 ​

1. 安装 uv ​

bash
# macOS & Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

2. 克隆代码与依赖同步 ​

bash
git clone https://github.com/codeAndxv/OneTTS.git
cd OneTTS

# 一键创建虚拟环境并锁定安装开发与生产依赖
uv sync --extra dev

3. 极速启动服务 ​

bash
uv run uvicorn server.main:app --host 0.0.0.0 --port 8030

4. 运行单元测试 ​

bash
uv run pytest

Released under the Apache-2.0 License.