【发布时间】:2011-08-31 14:48:31
【问题描述】:
尝试使用 Django 创建简单数据库时出现以下错误。我是这台计算机上唯一的用户,所以我应该是管理员。我该如何做才能让我拥有权限,以便 Django 可以做它的事情?
这里还有一些错误:
[Errno 13] Permission denied: '/Users/tyre77/.python-eggs/simplejson-2.1.6-py2.7-macosx-10.7-intel.egg-tmp/simplejson/tmpUxM60A.$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.
【问题讨论】:
-
ls -l /Users/tyre77/.python-eggs/和ls -l /Users/tyre77/.python-eggs/simplejson-2.1.6-py2.7-macosx-10.7-intel.egg-tmp/的结果是什么? -
第一个:总共 0 drwxr-xr-x 3 根员工 102 Aug 30 20:58 simplejson-2.1.6-py2.7-macosx-10.7-intel.egg-tmp跨度>
-
"我是这台计算机上唯一的用户,所以我应该是管理员。"使用“管理员”帐户不会授予您对整个文件系统的写入权限,它只会让您使用 sudo 获得 root 访问权限。始终使用具有完全访问权限的普通用户帐户存在巨大的安全风险。
-
第二个:total 0 drwxr-xr-x 3 root staff 102 Aug 30 20:58 simplejson
标签: python database django terminal