I faced this issue because when I executed brew install, brew updated the patch version of Python from 3.9.13_1
to 3.9.14
.
This can be easily resolved by running the following to uninstall and then install poetry.
curl -sSL https://install.python-poetry.org | python3 - --uninstall
curl -sSL https://install.python-poetry.org | python3 -