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

Users should be guided to install Memacs as --user #84

Open
ghost opened this issue Nov 4, 2018 · 4 comments
Open

Users should be guided to install Memacs as --user #84

ghost opened this issue Nov 4, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Nov 4, 2018

A pip install requirements.txt runs into permission issues as a non-root user. Since sudo pip should never be invoked, pip install requirements.txt should read pip install requirements.txt --user.

@novoid
Copy link
Owner

novoid commented Nov 5, 2018

Do you mean sudo pip install requirements.txt --user (as root)?

@ghost
Copy link
Author

ghost commented Nov 8, 2018

No this should never be run. See https://stackoverflow.com/questions/21055859/what-are-the-risks-of-running-sudo-pip

@novoid
Copy link
Owner

novoid commented Nov 8, 2018

Thanks @taohansen,
It seems to be the case that I need some ramp-up on this issue because I obviously do not understand pip yet.

I thought that pip install (as a user) installs packages in the user context and not on the OS level because the user doesn't have write permissions on OS level.

Now there is this "user scheme" method I was not aware of and I am a bit confused. python3 -m pip install --user does install packages in the user context. But what is python3 -m pip install (without --user) doing differently? I could not find a web page that explained me the difference so far. Do you have an URL or a brief explanation so that I understand my wrong assumptions?

Sorry for my lack of knowledge and thanks very much!

@ghost
Copy link
Author

ghost commented Nov 9, 2018

I must admit I am not a Python programmer and only ever make use of pip as a user. But to answer your first question, I believe that only with `pip install [pkg] --user" does a package install scope itself to only the user directory.

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

1 participant