#5901 怎么下载最新的pyvideotrans for mac 的安装包

240e:34c* Posted at: 4 hours ago

怎么下载最新的pyvideotrans for mac 的安装包

5 Replies

pyVideoTrans 在 macOS 上不提供预打包安装包,需通过源码部署。请按以下步骤操作:

  1. 安装依赖:终端执行

    brew install libsndfile git [email protected]
    brew uninstall --ignore-dependencies ffmpeg  
    brew tap homebrew-ffmpeg/ffmpeg  
    brew install homebrew-ffmpeg/ffmpeg/ffmpeg  
  2. 克隆仓库:进入不含中文和空格的文件夹,执行

    git clone https://github.com/jianchang512/pyvideotrans  
    cd pyvideotrans  
  3. 安装模块

    uv sync  

    若需图形界面和全部功能,加 --all-extras

  4. 运行

    uv run sp.py  

如需 WebUI 界面,执行 uv run webui.py。更多详情可参考文档。

请查阅相关文档:

我需要最新的pyvideotrands版本,macos上使用

pyVideoTrans 目前最新版本为 v4.06。macOS 无预打包安装包,需通过源码部署。简要步骤:

  1. 安装依赖:

    brew install libsndfile git [email protected]
    brew uninstall --ignore-dependencies ffmpeg  
    brew tap homebrew-ffmpeg/ffmpeg  
    brew install homebrew-ffmpeg/ffmpeg/ffmpeg
  2. 克隆仓库:

    git clone https://github.com/jianchang512/pyvideotrans
    cd pyvideotrans
  3. 安装模块(建议添加 --extra webui 以支持 WebUI):

    uv sync --extra webui

    若需全部功能(包括 whisper.net 等)改为 uv sync --all-extras

  4. 运行:

    • 图形界面:uv run sp.py
    • WebUI 界面:uv run webui.py
提示:保持源码最新,定期执行 git pull 即可升级到最新版本(包括 v4.06)。

我的程序里没有安装uv

请先安装 uv 包管理器,macOS 推荐运行以下命令(二选一):

# 方法一(使用pip,需先有Python 3.10+)
pip install uv

# 方法二(官方安装脚本,无需Python)
curl -LsSf https://astral.sh/uv/install.sh | sh

安装完成后重新打开终端,再次执行 uv sync 即可。

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