{"id":1138,"hash":"5d5c927941741486a9cfcf89daf42b22ccb53d4c923997458e75bd86c94273cf","pattern":"&#39;poetry install&#39; command fails; *.whl files are not found","full_message":"I am managing dependencies in my Python project via Poetry.\n\nNow I want to run this project in a machine which is different from my dev machine. To install dependecies, I simply run this command from the root directory:\n\n$ poetry install\n\nbut then it raises the following errors:\n\nUpdating dependencies\nResolving dependencies...\n\nWriting lock file\n\nPackage operations: 70 installs, 0 updates, 0 removals\n\n  • Installing colorama (0.4.4)\n  • Installing tzdata (2021.1)\n\n  ValueError\n\n  File \\C:\\Users\\tteguayco\\AppData\\Local\\pypoetry\\Cache\\artifacts\\9e\\b3\\11\\7d87ac44fdb2d557301f1f4086a37c080d1482a98751abe7cdbabbad26\\colorama-0.4.4-py2.py3-none-any.whl does not exist\n\n  at ~\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\poetry\\core\\packages\\file_dependency.py:40 in __init__\n       36│             except FileNotFoundError:\n       37│                 raise ValueError(\"Directory {} does not exist\".format(self._path))\n       38│\n       39│         if not self._full_path.exists():\n    →  40│             raise ValueError(\"File {} does not exist\".format(self._path))\n       41│\n       42│         if self._full_path.is_dir():\n       43│             raise ValueError(\"{} is a directory, expected a file\".format(self._path))\n       44│\n\n  ValueError\n\n  File \\C:\\Users\\tteguayco\\AppData\\Local\\pypoetry\\Cache\\artifacts\\45\\2d\\cb\\6443e36999e7ab3926d5385dfac9ee9ea2a62f8111ff71abb6aff70674\\tzdata-2021.1-py2.py3-none-any.whl does not exist\n\n  at ~\\AppData\\Local\\Programs\\Python\\Python39\\lib\\site-packages\\poetry\\core\\packages\\file_dependency.py:40 in __init__\n       36│             except FileNotFoundError:\n       37│                 raise ValueError(\"Directory {} does not exist\".format(self._path))\n       38│\n       39│         if not self._full_path.exists():\n    →  40│             raise ValueError(\"File {} does not exist\".format(self._path))\n       41│\n       42│         if self._full_path.is_dir():\n       43│             raise ValueError(\"{} is a directory, expected a file\".format(self._path))\n       44│\n\nIt would be good to know what these *.whl are and how they are used by Poetry.","ecosystem":"pypi","package_name":"python-poetry","package_version":null,"solution":"Specifically I found that deleting the AppData\\Local\\pypoetry\\Cache\\artifacts folder (I'm on Windows 10) worked for me. virtualenvs for other projects may be in AppData\\Local\\pypoetry\\Cache\\virtualenvs so you might not want to delete the root cache folder at AppData\\Local\\pypoetry\\Cache in its entirety.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/69326748/poetry-install-command-fails-whl-files-are-not-found","votes":22,"created_at":"2026-04-19T04:52:24.101582+00:00","updated_at":"2026-04-19T04:52:24.101582+00:00"}