开发者

.python-eggs permission denied

开发者 https://www.devze.com 2023-04-01 11:06 出处:网络
I\'m getting the following error when trying to create a simple db with Django. I\'m the only user on this computer, so I should be an admin. How do I make it so that I have permissions so that Django

I'm getting the following error when trying to create a simple db with Django. I'm the only user on this computer, so I should be an admin. How do I make it so that I have permissions so that Django can just do its thing?

here is some more of the error:

[Errno 13] Permission denied: '/Users/tyre77/.python-eggs/simplejson-2.1.6-py2.7-macosx-10.7-intel.egg-tmp/simplejson/tmpUxM60开发者_Go百科A.$extract'

The Python egg cache directory is currently set to:

/Users/tyre77/.python-eggs

Perhaps your account does not have write access to this directory?  You can
change the cache directory by setting the PYTHON_EGG_CACHE environment
variable to point to an accessible directory.


Files seem to be owned by root, and members of group staff do not have the rights to write into those files/directories and you're not root.

Try to change the owner of those files : sudo chown -R tyre77 /Users/tyre77/.python-eggs/

Maybe you've installed the module with a sudo command, so the files were created with the root privileges.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号