#5937 我现在的pyvideortans是3.69版本,我的电脑是mac m1,如何将pyvideortans升级到最新版本

240e:34c* Posted at: 1 day ago

我现在的pyvideortans是3.69版本,我的电脑是mac m1,如何将pyvideortans升级到最新版本

1 Replies

根据您使用的 macOS M1 芯片和当前 3.69 版本,pyVideoTrans 没有提供 macOS 的预打包版,因此需通过源码部署方式升级。

升级步骤(请按顺序执行)

  1. 备份配置文件(可选但推荐)
    源码目录/videotrans/ 下的 params.jsoncfg.jsoncodec.jsonass.json 文件复制到安全位置,防止更新被覆盖。
  2. 拉取最新源码
    进入原项目根目录(cd /your/path/pyvideotrans),执行:

    git pull origin main

    如果提示冲突或无法拉取(因本地修改),可先备份修改后再拉取:

    git stash
    git pull origin main
    git stash pop
  3. 更新 Python 依赖
    使用 uv 重新同步所有依赖:

    uv sync
    若遇网络问题,可添加镜像:uv sync --index https://mirrors.aliyun.com/pypi/simple/
  4. 重新启动软件

    uv run sp.py

    如果之前正常工作,此时版本应已更新至最新(当前最新为 v4.06)。

注意事项

  • 确保已安装 Python 3.10+ 和必要的系统库(brew install libsndfile git [email protected] ffmpeg)。
  • git pull 失败(如旧版源码结构差异大),可删除整个文件夹,重新按知识库 2.2 节全新部署(注意恢复备份的配置文件)。
  • 升级后首次启动可能需要重新下载模型(若模型缓存文件夹 models/ 未删除则无需重下)。

请查阅相关文档:

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Dondate via PayPal

Related resource