Fix poetry install
-
poetry install --no-dev
is removing dependencies needed by poetry itself because it was installed with pip
The problem here is, that poetry and the package are installed in the same environment. One should never mix the installation method within one environment. Either use poetry or pip. But not both at the same time. Because they don't know each other and break things when a package gets installed or removed by one or another.
When using virtualenvs.create false make sure poetry is installed with the installer script or as an alternative by pipx.
From: https://github.com/python-poetry/poetry/issues/2102#issuecomment-706740546
Solution: installing with the recommend ways or using poetry install
in production.
Edited by Carina Antunes