Python poetry install failure – invalid hashes

There are several issue reports about invalid hashes. One common cause is running multiple Poetry instances simultaneously; another is aborted downloads (e.g. ^C). Poetry should be fixed to make corruption less likely to happen in such cases, and perhaps to try downloading corrupted files again automatically.

Until then, the workaround is to remove the offending file from the cache and let Poetry download a fresh copy.

You can find the full path to the offending file like this:

$ find ~/.cache/pypoetry -name numpy-1.22.2-cp38-cp38-macosx_10_14_x86_64.whl

Or, for the lazy, just blow away the entire cache:

$ rm -rf ~/.cache/pypoetry

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)