Kattis / problemtools

Tools to manage problem packages using the Kattis problem package format.
MIT License
101 stars 70 forks source link

pip3 system-wide option installs in $HOME/.local/bin #227

Closed osalbahr closed 8 months ago

osalbahr commented 1 year ago

I installed the required apt packages in the README (and python3-pip) then ran pip3 install git+https://github.com/kattis/problemtools. And for some reason, pip still prompted me to add $HOME/.local/bin to my $PATH. as that is where pip installed the tools.

Is this an issue with my setup? Or is it a recent change to pip3's (default) behavior?

Screen Shot 2023-03-27 at 9 41 40 PM
simonlindholm commented 1 year ago

This is expected unless you run pip with sudo -- it detects that you don't have root permissions and automatically behaves as if you passed --user. I think pip has done this for the last couple of years at least.

osalbahr commented 1 year ago

Thank you for clarifying. Should that be part of the README?

simonlindholm commented 1 year ago

Yeah, the command for system-wise installation should probably have a sudo in front of it. Or be removed altogether, because there's little good reason to use it.

austrin commented 8 months ago

Fixed in README.md.