gpt4 book ai didi

docker - 从docker文件-'pkgs dont match the hashes from req file'安装时哈希值不匹配

转载 作者:行者123 更新时间:2023-12-02 19:15:41 33 4
gpt4 key购买 nike

我有从requirements.txt文件安装的dockerfile。在安装librosa lib时,它拉了许多其他需要的lib,在安装pycparser时,我收到此错误:

 Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
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.
torch from https://files.pythonhosted.org/packages/8c/5d/faf0d8ac260c7f1eda7d063001c137da5223be1c137658384d2d45dcd0d5/torch-1.6.0-cp38-cp38-manylinux1_x86_64.whl#sha256=5357873e243bcfa804c32dc341f564e9a4c12addfc9baae4ee857fcc09a0a216 (from -r requirements.txt (line 4)):
Expected sha256 5357873e243bcfa804c32dc341f564e9a4c12addfc9baae4ee857fcc09a0a216
Got eb3c7b3621d64e9d9955ec0546729291338556d4ee8ccbf347169f574816f089
哈希有什么问题?我没有在我的reqs文件中指出任何哈希或id。
我的需求文件:
flask
pydub
scipy
torch
numpy
librosa
dockerfile:
FROM voice

RUN mkdir -p ./voice_flask/d
WORKDIR /voice_flask/d
COPY . /voice_flask/d

RUN pip install -r requirements.txt
CMD ["python", "server.py"]

最佳答案

我建议您使用--no-cache-dir重新安装软件包

RUN pip install -r requirements.txt --no-cache-dir
看到这个 Issue

关于docker - 从docker文件-'pkgs dont match the hashes from req file'安装时哈希值不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63574329/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com