我在运行此诗歌更新时遇到了问题。
KeyError
'None'
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/mixology/version_solver.py:199 in _propagate
195│ # Iterate in reverse because conflict resolution tends to produce more
196│ # general incompatibilities as time goes on. If we look at those first,
197│ # we can derive stronger assignments sooner and more eagerly find
198│ # conflicts.
→ 199│ for incompatibility in reversed(self._incompatibilities[package]):
200│ if incompatibility in self._contradicted_incompatibilities:
201│ continue
202│
203│ result = self._propagate_incompatibility(incompatibility)
python --版本
Python 3.11.9
诗--版本
诗歌(1.8.3版)
知道如何解决这个问题
您可能出现此问题的原因已在您的第二行中指出:
at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/mixology/version_solver.py:199 in _propagate
--------------------------------------------^^
看起来您没有使用为系统配置的 python 3.11.9,而是使用 python 3.10.x。
如果您正在完成项目,请确保执行以下操作:
python -m venv <name of the virtual env>
-> python -m venv .venv
source .venv/bin/activate
poetry update
。希望您的问题能够由此得到解决。