(This installation is for windows) This steps are better explained in the official documentation of Poetry.
py -m pip install --user pipx
If this warning appear:
WARNING: The script pipx.exe is installed in `<USER folder>/AppData/Roaming/Python/Python3x/Scripts` which is not on PATH
Go to the mentioned folder. Enter the following line (even if you did not get the warning):
./pipx.exe ensurepath
pipx install poetry
pipx upgrade poetry
pipx uninstall poetry