What do I need to do to fix "ERROR: Could not build wheels which use PEP 517 and cannot be installed directly"?
What do I need to do to fix "ERROR: Could not build wheels which use PEP 517 and cannot be installed directly"?
我正在构建一个在开发、测试和发布方面遵循标准实践的库(使用 tox 和 pytest,setup.cfg,等等)。今天早上的某个时候,当我尝试 运行 我的测试时突然开始出现以下错误,我对根本原因感到困惑。
Building wheels for collected packages: python-step-series
Building wheel for python-step-series (PEP 517): started
Building wheel for python-step-series (PEP 517): finished with status 'done'
Created wheel for python-step-series: filename=python_step_series-0.0.2.dev1.post1.dev0_g1f5fc90.d20211206-py3-none-any.whl size=17943 sha256=6db044ba1828101d1ecd7f27be55a42b63711d537a6ea01d4935eaa4122655ef
Stored in directory: /home/user/.cache/pip/wheels/46/6f/be/601a51d80e3889cae97cbe8b1a98cc4be1004f1e97546d94ef
WARNING: Built wheel for python-step-series is invalid: Metadata 1.2 mandates PEP 440 version, but '0.0.2.dev1.post1.dev0-g1f5fc90.d20211206' is not
Failed to build python-step-series
ERROR: Could not build wheels for python-step-series which use PEP 517 and cannot be installed directly
我知道它与 git 标记有关,而且我的工作树很脏,但我无法解决这个问题。直到今天早上,我从来没有遇到过问题。每次我想 运行 我的测试(使用 tox)时创建一个新标签似乎可以解决这个问题——直到我的工作树再次变脏。无论如何,这种创可贴既不有效也不合适。
我使用的是 tox-conda 而不是 virtualenv,但每个环境都报告 Pip 版本:21.2.4 (python 3.7,3.8, 3.9.3.10)
有没有其他人遇到过或知道这个问题以及如何解决它?
我决定第三次彻底清除我的环境并删除 pip 的缓存。显然,导致这个问题的原因存在于 pip 的缓存中,或者“第三次是魅力”的迷信成真了。
我正在构建一个在开发、测试和发布方面遵循标准实践的库(使用 tox 和 pytest,setup.cfg,等等)。今天早上的某个时候,当我尝试 运行 我的测试时突然开始出现以下错误,我对根本原因感到困惑。
Building wheels for collected packages: python-step-series
Building wheel for python-step-series (PEP 517): started
Building wheel for python-step-series (PEP 517): finished with status 'done'
Created wheel for python-step-series: filename=python_step_series-0.0.2.dev1.post1.dev0_g1f5fc90.d20211206-py3-none-any.whl size=17943 sha256=6db044ba1828101d1ecd7f27be55a42b63711d537a6ea01d4935eaa4122655ef
Stored in directory: /home/user/.cache/pip/wheels/46/6f/be/601a51d80e3889cae97cbe8b1a98cc4be1004f1e97546d94ef
WARNING: Built wheel for python-step-series is invalid: Metadata 1.2 mandates PEP 440 version, but '0.0.2.dev1.post1.dev0-g1f5fc90.d20211206' is not
Failed to build python-step-series
ERROR: Could not build wheels for python-step-series which use PEP 517 and cannot be installed directly
我知道它与 git 标记有关,而且我的工作树很脏,但我无法解决这个问题。直到今天早上,我从来没有遇到过问题。每次我想 运行 我的测试(使用 tox)时创建一个新标签似乎可以解决这个问题——直到我的工作树再次变脏。无论如何,这种创可贴既不有效也不合适。
我使用的是 tox-conda 而不是 virtualenv,但每个环境都报告 Pip 版本:21.2.4 (python 3.7,3.8, 3.9.3.10)
有没有其他人遇到过或知道这个问题以及如何解决它?
我决定第三次彻底清除我的环境并删除 pip 的缓存。显然,导致这个问题的原因存在于 pip 的缓存中,或者“第三次是魅力”的迷信成真了。