-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption).
- OS version and name: windows 10
- Poetry version: 1.1.14
- Link of a Gist with the contents of your pyproject.toml file: (none)
Issue
(I managed to solve the problem, but still decided to report this as I suppose this may be a solution to some hash&cache related issues)
I encountered an internet connection problem during installing NumPy to a new poetry environment, manually closed the poetry command window, and retried poetry install after regaining internet connection, but got
Invalid hashes (sha256:81efafdaee436f1f34e9121d9ea96fa95d20c73390cd2874fe3ffc75cc86425a) for NumPy (1.23.1) using archive NumPy-1.23.1-cp39-cp39-win_amd64.whl.
Like the suggestions related to hash resolve issues, I tried poetry cache clear . --all, poetry cache clear --all pypi and deleting poetry.toml, but I still got the same RuntimeError.
Then I tried to find the .whl document and found it in
C:\Users\(username)\AppData\Local\pypoetry\Cache\artifacts...
After that I deleted all documents in artifacts directory, and then everything goes smoothly.
It seems that on windows the cache clear command only removes caches in C:\Users\(username)\AppData\Local\pypoetry\Cache\\**cache**, but the artifacts document on the same level with "cache" is untouched. I believe some cache-related problems that couldn't be solved by running poetry cache clear are related to this.