Wednesday, May 15, 2024
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 8765  / 2 Years ago, fri, september 9, 2022, 5:27:25

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"

More From » command-line

 Answers
2

You add ~/poetry/bin to PATH, but it should be ~/.poetry/bin.




Regarding python is not available, you can (re)install python-is-python3 package via apt:


sudo apt install python-is-python3

[#972] Friday, September 9, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
memorrappin

Total Points: 325
Total Questions: 122
Total Answers: 100

Location: Armenia
Member since Sat, Sep 12, 2020
4 Years ago
memorrappin questions
Tue, Aug 23, 22, 13:34, 2 Years ago
Fri, Aug 12, 22, 14:45, 2 Years ago
Thu, Jan 12, 23, 01:52, 1 Year ago
Sun, Apr 3, 22, 16:14, 2 Years ago
;