Skip to content

本地部署 🔧

本地部署运行

只是想尝试一下?跳到 《远程部署》 章节

配置要求

  • 操作系统: Windows10+MacOS 11+Debian12+ 系统
  • 支持架构: windows.x86_64linux.x86_64darwin_x86_64
  • 建议最低 CPU: 4核 或以上,内存 8G 或以上,显卡非必须支持 cpucuda

前提条件

  • 请确保你的 网络 是正常的,VPN需要打开全局流量模式
  • Conda 安装不要使用 中文路径,或 空格路径 避免出现一些无法预料的问题

提示

虚拟环境配置见 《准备工作》 章节

安装步骤

1. 克隆下载

bash
git clone https://github.com/xiesx123/CreatorBox.git

2.创建虚拟环境

  • 创建虚拟环境
bash
conda create --name creatorbox python=3.11.11
  • 激活虚拟环境
bash
conda activate creatorbox

3.安装依赖

  • 可选
bash
pip install -r src/support/third_party/cosyvoice/requirements.txt
pip install -r src/support/third_party/f5_tts/requirements.txt
  • 必须 *
bash
pip install -r requirements.txt

4.启动运行

bash
python run.py start

注意

  • 1、Windows 系统直接双击 run.bat 运行

  • 2、如果下载很慢,需要修改镜像源

bash
pip config set install.trusted-host pypi.tuna.tsinghua.edu.cn
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple/
pip config list

访问界面

  • 本机访问 http://127.0.0.1:8000

  • 内网访问 http://172.18.0.1:8000 以实际为准👇

    log
     _____                _            ______
    /  __ \              | |           | ___ \
    | /  \/_ __ ___  __ _| |_ ___  _ __| |_/ / _____  __
    | |   | '__/ _ \/ _` | __/ _ \| '__| ___ \/ _ \ \/ /
    | \__/\ | |  __/ (_| | || (_) | |  | |_/ / (_) >  < 
     \____/_|  \___|\__,_|\__\___/|_|  \____/ \___/_/\_\   v1.0.8
    
    2025-03-27 11:34:52.458 | INFO 1496 task.py:18 - Startup Scheduler 2 Job Completed.
    2025-03-27 11:34:52.458 | INFO 1496 main.py:84 - Started CreatorBox Run Debug Success (3.16 seconds)
    2025-03-27 11:34:52.459 | INFO 1496 main.py:85 - http://172.18.0.1:8000