#3435 Whisperx installation error

2001:ee0* Posted at: 2 hours ago 👁3

$ uv run app.py
Using CPython 3.12.11
Creating virtual environment at: .venv
x Failed to download matplotlib==3.10.7
|-> Failed to fetch:
| `https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/31/3c/80816f027b3a
4a28cd2a0a6ef7f89a2db22310e945cd886ec25bfb399221/matplotlib-3.10.7-cp312-cp312-w
in_amd64.whl`
`-> HTTP status client error (403 Forbidden) for url

  (https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/31/3c/80816f027b3a

4a28cd2a0a6ef7f89a2db22310e945cd886ec25bfb399221/matplotlib-3.10.7-cp312-cp312-w
in_amd64.whl)
help: matplotlib (v3.10.7) was included because wx (v0.1.0) depends on

    `whisperx` (v3.7.4) which depends on `pyannote-audio` (v3.4.0) which
    depends on `pyannote-metrics` (v3.2.1) which depends on `matplotlib`

1 Replies

这是由于网络环境问题导致从清华大学PyPI镜像站下载 matplotlib 包时被拒绝(HTTP 403错误)。

解决方案

  1. 临时切换包管理器源:在命令行中,设置 uv 使用官方 PyPI 源,避免镜像站限制。

    uv run --with-pypi-url https://pypi.org/simple app.py
  2. 配置网络代理:如果您的网络访问国际站点受限,需要在 uv 或系统环境中配置代理。

    • 在命令行中临时设置:

      set HTTP_PROXY=http://127.0.0.1:你的代理端口
      set HTTPS_PROXY=http://127.0.0.1:你的代理端口
      uv run app.py
    • 或在 uv 的配置文件(如 pyproject.toml)中配置。
  3. 手动安装依赖:如果上述方法无效,可以尝试先手动安装出错的包。

    pip install matplotlib==3.10.7 -i https://pypi.org/simple

    然后再使用 uv run app.py 运行。

注意:此错误发生在部署 whisperx 相关依赖时,属于环境配置问题。请确保您的网络可以正常访问 PyPI 官方源或已正确配置代理。

请查阅相关文档:

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.

Related resource