-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
The directory 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. #988
Comments
Try this:
|
Message received after trying
Overall goal is to setup my machine for this: http://newcoder.io/begin/setup-your-machine/#mac-os-x |
Is there a file |
Yes
|
Os x has default python install and you're trying to install in it. I had the same issue but I fixed with the following command |
I also saw this change on my Mac when I went from running 'pip' to 'sudo pip' Adding '-H' to sudo causes the message to go away for me. E.g.
|
But I don't want to add |
It does matter what you want. The fix is to add You cloud, also, add an alias to it for yourself so that the inconvenience of hitting two more keys doesn’t affect you.. @OrangePJ |
@Ekultek fine... |
python --version |
I solved with |
1.查看文件的拥有权:ls -l |
when i use sudo pip3 install requests it shows this massage but i used just pip3 install requests it installed package. |
For some reason, I had to add python to the PATH and this solved my problem. |
Install without sudo as in what I was trying to install, the -H option didn't install all packages but the install without sudo did it. |
This is related to provisioning virtualenv for the system, and it's OS dependent probably. As there's no actionable item for the package itself I'll close this. |
Sorry to bring this thread back to life, but I am still experiencing a problem with my module not importing correctly. This is error message I get when I try importing the module "pyperclip"
Can anyone help? This is what I get when I try installing pyperclip via
btw I am a newbie. Terminal is foreign to me. Thanks in advance everyone. |
@SecureTheBeans your question has nothing to do with virtualenv, your question is more appropriate at https://discuss.python.org/c/users/7 |
My bad. I didn’t know this was exclusive to virtualenv. I received the same outputted message from Terminal after trying to install the module pyperclip through sudo pip install and figured the issues were similar enough. Anyways I figured out what was going on. The interpreter I was using was not the same where pip was installing. |
I am receiving the following message when trying to install virtualenv via:
sudo pip install virtualenv
I am unsure how to resolve this issue.
The text was updated successfully, but these errors were encountered: