源码部署
Windows用户也可查看该方法安装 uv 和 ffmpeg
MacOS/Linux预先安装工具
MacOS需执行如下命令安装相关库
brew install libsndfile brew install ffmpeg brew install git brew install [email protected]Linux需安装
ffmpeg,命令sudo yum install -y ffmpeg或apt-get install ffmpeg创建不含空格和中文的文件夹,在终端中进入该文件夹,然后终端中执行命令
git clone https://github.com/jianchang512/pyvideotrans cd pyvideotrans也可直接去 https://github.com/jianchang512/pyvideotrans 该地址点击绿色Code按钮下载源码,解压后进入
sp.py所在目录执行命令
uv sync安装模块,根据网络情况,可能需要几分钟到十几分钟,中国大陆用户可使用镜像加速安装,命令:uv sync --index https://mirrors.aliyun.com/pypi/simple/执行命令
uv run sp.py打开软件界面
源码部署问题说明
- 默认使用 ctranslate2的4.x版本,仅支持CUDA12.x版本,如果你的cuda低于12,并且无法升级cuda到12.x,请执行命令卸载ctranslate2然后重新安装
uv remove ctranslate2
uv add ctranslate2==3.24.0