Replies: 2 comments 1 reply
-
We don't have to do it, it's just a simple and robust method to install Poetry. We made it the first recommendation because it's less error-prone than the installation script and simpler than the manual method. Nevertheless, the other methods are not deprecated, you can still use them.
A simple pip install is not recommended. You should only do this if you know exactly what you are doing. Thereby, it's not a good default method. See the big red warning at the beginning of https://python-poetry.org/docs/#installation The manual method shows how to use pip correctly (first create a venv). |
Beta Was this translation helpful? Give feedback.
-
Hello
pipx run --spec "poetry==1.8.0" poetry it is not ideal (it still perform a network connectivity for nothing), but I can have several jobs starting at the same time on my shared runner and each will use the right version of poetry independantly. |
Beta Was this translation helpful? Give feedback.
-
During the past couple of months, I've found that the recommended installation method has changed from Poetry installation script to
pipx
. This means that we have to installpipx
first to use Poetry.The main question arises here - Why do we have to install another package manager(
pipx
), to install a package manager(Poetry)?Of course,
pipx
is a bit different from package managers because it's focused on globally executable scripts. But the point is that we could provide a simpler way to install Poetry on the system. It would be nice if we don't need to install other installer first.What if, we can make users install Poetry like this?
pip install poetry python -m poetry ensurepath # Just like pipx, add Poetry to PATH automatically. Needs a PR.
There's a logic for
ensurepath
in thepipx
codebase. Sincepipx
is based on MIT license, we can refer to it, I believe.If this installation method is acceptable, I will be happy to make a PR.
Beta Was this translation helpful? Give feedback.
All reactions