Skip to content

Source Code Deployment (MacOS/Linux/Windows)

We recommend using uv for installation. If you don't have uv yet, see the official installation guide

Windows users can also check this guide to install uv and ffmpeg


1. Prerequisites

macOS — Install the required libraries:

bash
brew install libsndfile
brew install ffmpeg
brew install git
brew install python@3.10

Linux — Install ffmpeg>=6:

bash
sudo yum install -y ffmpeg
# or
sudo apt-get install ffmpeg

Windows — Download ffmpeg>=6 and place ffmpeg.exe and ffprobe.exe in the code directory/ffmpeg folder. Download address: https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z


2. Clone the Repository

Create a folder without spaces or Chinese characters, then run:

bash
git clone https://github.com/jianchang512/pyvideotrans
cd pyvideotrans

Alternatively, go to https://github.com/jianchang512/pyvideotrans, click the green Code button to download the source code, extract it, and navigate to the directory containing sp.py.


3. Install Dependencies

bash
uv sync

This may take several minutes depending on your network. Users in mainland China can use a mirror for faster installation:

bash
uv sync --index https://mirrors.aliyun.com/pypi/simple/

Optional extras:

CommandWhat it installs
uv sync --all-extraAll optional channels + WebUI
uv sync --extra qwenttsQwen-TTS only
uv sync --extra qwenasrQwen-ASR only
uv sync --extra mossttsMOSS-TTS only
uv sync --extra chatterboxChatterBox only
uv sync --extra webuiWebUI interface only

4. Launch

Desktop GUI:

bash
uv run sp.py

WebUI (browser-based):

bash
uv run webui.py