I am trying to install poetry the recommended way on Ubuntu 20.04.3 LTS:
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
When I do so, it says:
content.com/python-poetry/poetry/master/get-poetry.py | python -
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
curl: (23) Failed writing body (485 != 1378)
Then I try python3
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
The installation succeeds.
Afterwards when calling poetry --version
to test the installation, I get:
poetry: command not found
Although I added poetry to PATH manually, in .bash_profile
:
PATH=$PATH:~/poetry/bin
I also tried adding poetry to path in .bashrc
similarly to this answer:
export PATH="~/poetry/bin:$PATH"
PATH=$PATH:~/poetry/bin
to path, but the path is~/.poetry/bin
! – pLumo Dec 02 '21 at 09:29