Install Poetry with pipx by following
this link.
You must use the current adopted version of Poetry defined here.
If you have poetry already installed and is not the right version, you can downgrade (or upgrade) poetry through:
poetry self update <version>
or with pipx:
pipx install poetry==<version> --force