Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
osalbahr opened this issue Mar 28, 2023 · 4 comments
Closed

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

osalbahr opened this issue Mar 28, 2023 · 4 comments

Comments

@osalbahr
Copy link
Contributor

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
Copy link
Member

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
Copy link
Contributor Author

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

@simonlindholm
Copy link
Member

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
Copy link
Contributor

austrin commented Oct 16, 2023

Fixed in README.md.

@austrin austrin closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants