#5985 (base) a1-6@MacBook-Pro-2 pyvideotrans-main % uv sync --index https://mirrors.aliyun.com/pypi/simple/ × Failed to downl

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

(base) a1-6@MacBook-Pro-2 pyvideotrans-main % uv sync --index https://mirrors.aliyun.com/pypi/simple/
× Failed to download `pynini @
https://github.com/billwuhao/pynini-windows-wheels/releases/download/v2.1.6.post1/pynini-2.1.6.post1-cp310-cp310-win_amd64.whl`
├─▶ Request failed after 3 retries in 50.1s
├─▶ Failed to fetch:
https://github.com/billwuhao/pynini-windows-wheels/releases/download/v2.1.6.post1/pynini-2.1.6.post1-cp310-cp310-win_amd64.whl
├─▶ error sending request for url
│ (https://github.com/billwuhao/pynini-windows-wheels/releases/download/v2.1.6.post1/pynini-2.1.6.post1-cp310-cp310-win_amd64.whl)
├─▶ client error (Connect)
╰─▶ operation timed out
(base) a1-6@MacBook-Pro-2 pyvideotrans-main %

1 Replies

pynini 的 Windows 版 wheel 被错误地下载到了 macOS 上(链接中的文件名包含 win_amd64),这通常是因为 uv 的依赖解析出现了平台匹配错误,或者使用了错误的镜像源导致缓存/重定向问题。此外网络连接 GitHub 超时。

解决步骤

  1. 取消镜像代理,直接用默认源重试
    多数国内用户访问 GitHub 需科学上网。请先关闭终端中的代理命令(如 unset http_proxy https_proxy),然后重新执行:

    uv sync

    (如果不通,再开启代理后重试)

  2. 跳过损坏的缓存(在 macOS 上手动排除 pynini)
    由于 pynini 仅用于 Windows 下的特定功能,macOS 上可忽略该依赖。执行以下命令手动安装除 pynini 外的所有依赖:

    uv sync --no-deps
    pip install -r requirements.txt

    (前提:requirements.txt 中不含 pynini 或已将其删除)

  3. 手动安装 pynini(如果必须)
    pynini 没有官方 macOS 轮子,无法在 macOS 上正常安装。该库仅为 Windows 版本提供支持(如文本规范化),macOS 用户无需此包,可忽略。
  4. 确认 macOS 前置依赖
    确保已安装 brew install libsndfile [email protected] ffmpeg(参见知识库 2.2 节)。

完成以上步骤后,运行 uv run sp.py 即可启动软件。若仍有网络问题,请确认代理配置或更换网络环境。

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