Difference between sudo -H pip install and pip --user install
up vote
-1
down vote
favorite
I am wondering what is the difference between those two commands (I feel they are identical):
sudo -H pip install <package>
pip --user install <package>
More informations:
From the sudo manpage:
-H, --set-home
Request that the security policy set the HOME environment
variable to the home directory specified by the target user's
password database entry. Depending on the policy, this may be
the default behavior.
And the pip user guide: https://pip.pypa.io/en/stable/user_guide/
Related questions:
What is the difference between pip install and sudo pip install?
What is the purpose "pip install --user ..."? and
sudo pip install VS pip install --user
But neither of them talk about the sudo -H option or the precise difference bewteen the two.
python pip
add a comment |
up vote
-1
down vote
favorite
I am wondering what is the difference between those two commands (I feel they are identical):
sudo -H pip install <package>
pip --user install <package>
More informations:
From the sudo manpage:
-H, --set-home
Request that the security policy set the HOME environment
variable to the home directory specified by the target user's
password database entry. Depending on the policy, this may be
the default behavior.
And the pip user guide: https://pip.pypa.io/en/stable/user_guide/
Related questions:
What is the difference between pip install and sudo pip install?
What is the purpose "pip install --user ..."? and
sudo pip install VS pip install --user
But neither of them talk about the sudo -H option or the precise difference bewteen the two.
python pip
are identical if the user is root, the "--user" option install for current user only
– ZiTAL
14 hours ago
duplicated of: stackoverflow.com/questions/42988977/…
– ZiTAL
14 hours ago
This is not a duplicate. The other question has nothing about sudo in it.
– Simon
13 hours ago
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am wondering what is the difference between those two commands (I feel they are identical):
sudo -H pip install <package>
pip --user install <package>
More informations:
From the sudo manpage:
-H, --set-home
Request that the security policy set the HOME environment
variable to the home directory specified by the target user's
password database entry. Depending on the policy, this may be
the default behavior.
And the pip user guide: https://pip.pypa.io/en/stable/user_guide/
Related questions:
What is the difference between pip install and sudo pip install?
What is the purpose "pip install --user ..."? and
sudo pip install VS pip install --user
But neither of them talk about the sudo -H option or the precise difference bewteen the two.
python pip
I am wondering what is the difference between those two commands (I feel they are identical):
sudo -H pip install <package>
pip --user install <package>
More informations:
From the sudo manpage:
-H, --set-home
Request that the security policy set the HOME environment
variable to the home directory specified by the target user's
password database entry. Depending on the policy, this may be
the default behavior.
And the pip user guide: https://pip.pypa.io/en/stable/user_guide/
Related questions:
What is the difference between pip install and sudo pip install?
What is the purpose "pip install --user ..."? and
sudo pip install VS pip install --user
But neither of them talk about the sudo -H option or the precise difference bewteen the two.
python pip
python pip
edited 13 hours ago
asked 14 hours ago
s.k
221113
221113
are identical if the user is root, the "--user" option install for current user only
– ZiTAL
14 hours ago
duplicated of: stackoverflow.com/questions/42988977/…
– ZiTAL
14 hours ago
This is not a duplicate. The other question has nothing about sudo in it.
– Simon
13 hours ago
add a comment |
are identical if the user is root, the "--user" option install for current user only
– ZiTAL
14 hours ago
duplicated of: stackoverflow.com/questions/42988977/…
– ZiTAL
14 hours ago
This is not a duplicate. The other question has nothing about sudo in it.
– Simon
13 hours ago
are identical if the user is root, the "--user" option install for current user only
– ZiTAL
14 hours ago
are identical if the user is root, the "--user" option install for current user only
– ZiTAL
14 hours ago
duplicated of: stackoverflow.com/questions/42988977/…
– ZiTAL
14 hours ago
duplicated of: stackoverflow.com/questions/42988977/…
– ZiTAL
14 hours ago
This is not a duplicate. The other question has nothing about sudo in it.
– Simon
13 hours ago
This is not a duplicate. The other question has nothing about sudo in it.
– Simon
13 hours ago
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
sudo is short for 'superuser do'. It simply runs the command with root privileges, which may be useful if you are installing to a directory you normally wouldn't have access to.
However, in the examples you have given the two commands would function identically, as you don't need root privileges to pip install --user
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
sudo is short for 'superuser do'. It simply runs the command with root privileges, which may be useful if you are installing to a directory you normally wouldn't have access to.
However, in the examples you have given the two commands would function identically, as you don't need root privileges to pip install --user
add a comment |
up vote
0
down vote
sudo is short for 'superuser do'. It simply runs the command with root privileges, which may be useful if you are installing to a directory you normally wouldn't have access to.
However, in the examples you have given the two commands would function identically, as you don't need root privileges to pip install --user
add a comment |
up vote
0
down vote
up vote
0
down vote
sudo is short for 'superuser do'. It simply runs the command with root privileges, which may be useful if you are installing to a directory you normally wouldn't have access to.
However, in the examples you have given the two commands would function identically, as you don't need root privileges to pip install --user
sudo is short for 'superuser do'. It simply runs the command with root privileges, which may be useful if you are installing to a directory you normally wouldn't have access to.
However, in the examples you have given the two commands would function identically, as you don't need root privileges to pip install --user
answered 13 hours ago
Moralous
71111
71111
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371959%2fdifference-between-sudo-h-pip-install-and-pip-user-install%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
are identical if the user is root, the "--user" option install for current user only
– ZiTAL
14 hours ago
duplicated of: stackoverflow.com/questions/42988977/…
– ZiTAL
14 hours ago
This is not a duplicate. The other question has nothing about sudo in it.
– Simon
13 hours ago