#1308 execute: python3.10 -m pip install -r requirements.txt

158.179* Posted at: 3 hours ago 👁7

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 包管理器在进行安全验证时发现哈希值不匹配的错误。faster-whisper 包的源码可能已被更新,但 requirements.txt 文件中的哈希值尚未同步更新。

解决方案:

  1. 临时绕过哈希检查(推荐用于开发环境):
    使用 --use-deprecated=legacy-resolver 参数:

    python3.10 -m pip install --use-deprecated=legacy-resolver -r requirements.txt
  2. 更新 requirements.txt 文件(更彻底的解决方案):
    联系项目维护者更新 requirements.txt 文件中的 faster-whisper 哈希值为最新的 d52df265e2745d60e2542857e71475220fb53a0d4a706cfb26a8c0ae151b727c

对于 pyVideoTrans 用户,如果只是想快速安装使用,建议使用第一种方法。这不会影响软件功能,只是跳过了包完整性的安全检查。

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