#1438 哈希值不匹配是什么原因

154.3* Posted at: 3 hours ago 👁11

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.

faster-whisper@ https://github.com/SYSTRAN/faster-whisper/archive/refs/heads/master.tar.gz#sha256=3b12370563a19abcb56e4bb9aafb992e8178eb923f4f7d3e494d9be30e06a170 from https://github.com/SYSTRAN/faster-whisper/archive/refs/heads/master.tar.gz#sha256=3b12370563a19abcb56e4bb9aafb992e8178eb923f4f7d3e494d9be30e06a170 (from -r requirements.txt (line 67)):
    Expected sha256 3b12370563a19abcb56e4bb9aafb992e8178eb923f4f7d3e494d9be30e06a170
         Got        d52df265e2745d60e2542857e71475220fb53a0d4a706cfb26a8c0ae151b727c

1 Replies

哈希值不匹配通常是由于网络问题导致下载的软件包不完整或被修改。这在使用 pip 安装依赖时常见。

解决方法:

  1. 清理缓存并重试

    pip cache purge
    pip install -r requirements.txt --no-cache-dir
  2. 使用国内镜像源

    pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
  3. 如果是 Windows 预打包版用户

    • 这个问题应该不会出现,因为依赖已内置。如果是在自行部署时遇到,请按上述方法解决。
    • 确保从官方渠道下载完整软件包,而非仅下载升级包。
  4. 检查网络环境:确保网络连接稳定,没有中间代理篡改数据包。

如果问题持续,请提供完整的错误日志文件(位于 videotrans/logs/ 目录下)。

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.

Donate: https://ko-fi.com/jianchang512

Trending Questions