Tell us what’s happening:
I have tried updating the dependency information in pyproject.toml, but with little success (this actually has resulted in a larger, harder to diagnose error). This error is frustrating since it prevents me from even beginning to work on the project.
→ poetry add matplotlib
Using version ^3.8.2 for matplotlib
Updating dependencies
Resolving dependencies…
The current project’s Python requirement (>=3.7,<4.0) is not compatible with some of the required packages Python requirement:
- matplotlib requires Python >=3.9, so it will not be satisfied for Python >=3.7,<3.9
Because no versions of matplotlib match >3.8.2,<4.0.0
and matplotlib (3.8.2) requires Python >=3.9, matplotlib is forbidden.
So, because root depends on matplotlib (^3.8.2), version solving failed.
• Check your dependencies Python requirement: The Python requirement can be specified via the python
or markers
properties
For matplotlib, a possible solution would be to set the `python` property to ">=3.9,<4.0"
https://python-poetry.org/docs/dependency-specification/#python-restricted-dependencies,
https://python-poetry.org/docs/dependency-specification/#using-environment-markers
exit status 1