Closed costincaraivan closed 6 years ago
This same error is happening with the Homebrew'ed version of Python on macOS: https://github.com/sdispater/poetry/issues/36
I am experiencing the issue on ubuntu 18.04
Anything that involves installing packages to system python will require root permission, which is one of the main reasons to avoid installing system packages i.e. sudo pip install my-package-with-buggy-deps
This is a common issue in python and the README should probably address it early on by either:
I usually prefer option 2, and from my usage this means:
# to install
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | sudo python3.6
# to setup bash completion
poetry completions bash | sudo tee /etc/bash_completion.d/poetry.bash-completion > /dev/null
I believe pip
should never be used with root permissions. The current installer is missing a --user
flag, but there's already a PR open for that.
I wouldn't say never, its a perfectly valid use case for multi-user, system package installs, particularly if the package vendors its dependencies like poetry
The Poetry documentation will never recommend installing with sudo
since this is a bad practice most of the time. If one wants to install it this way they can and are free do to so.
Nonetheless, Poetry installation is still a pain point and is something that needs to be tackled before Poetry can reach version 1.0.
I want the installer to make Poetry self-sufficient and self-updatable without hitting permissions issues.
The only way to achieve that is to install it in the user directory. For instance, cargo
for Rust is installed in the ~/.cargo
directory.
The only way to achieve that is to install it in the user directory. For instance, cargo for Rust is installed in the ~/.cargo directory.
In which case should it use base directories as specified by freedesktop?
The new installer's behavior fixes this by adopting the behavior that I hinted at here: https://github.com/sdispater/poetry/issues/112#issuecomment-407459442
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I'm using the distro packages for Python and Pip:
I know that pip complains about it not being the latest version, but I think the installation should still work, right?
By complains I mean this:
Anyway:
and
both end up with this:
😢
(Edit:
pip3 install --user poetry
worked. I'll leave the issue here and you can close it if you want. I'd say that the default installation instructions should work.)