解决pip哈希值不匹配问题

任务

学习d2l时候,装torch竟然报错

症状描述

报错

执行

pip3 install torch

时候报错:

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.
unknown package:
Expected sha256 d366158d6503a3447e67f8c0ad1328d54e6c181d88572d688a625fac61b13a97
Got 3dac8408d3b12505b5c26022eab82915423b829d62fb100fc9b7c3f42e355194

解决方法

参照参考回答,执行:

pip cache purge

就ok了

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐