Error : pip install: Please check the permissions and owner of that directory

Published by onesixx on

https://stackoverflow.com/questions/27870003/pip-install-please-check-the-permissions-and-owner-of-that-directory

~|⇒ sudo pip install
[sudo] password for onesixx:
The directory ‘/Users/onesixx/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/Users/onesixx/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
You must give at least one requirement to install (see “pip help install”)
~|⇒ sudo -H pip install
[sudo] password for onesixx:
You must give at least one requirement to install (see “pip help install”)

‘man sudo’ tells me that ‘-H’ causes sudo to set $HOME to the target users (root in this case).

So it appears pip is looking into $HOME/Library/Log and sudo by default isn’t setting HOME to ~root.
Not surprisingly ~/Library/Log is owned by you as a user rather than root.

I suspect this is some recent change in pip. I’ll run it with ‘sudo -H’ for now to work around.

 

Categories: R Basic

onesixx

Blog Owner

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x