Memacs icon indicating copy to clipboard operation
Memacs copied to clipboard

Users should be guided to install Memacs as `--user`

Open ghost opened this issue 5 years ago • 4 comments

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.

ghost avatar Nov 04 '18 12:11 ghost

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

novoid avatar Nov 05 '18 17:11 novoid

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

ghost avatar Nov 08 '18 13:11 ghost

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!

novoid avatar Nov 08 '18 18:11 novoid

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.

ghost avatar Nov 09 '18 17:11 ghost