关于PYTHON_EGG_CACHE无权限的问题

2009年07月30日 blankyao 发布在 杂七杂八 标签:python, mod_wsgi, web.py 只有一条评论

用web.py整了个小东西,直接运行是可以的,但是放到apache下就不照了,看了下apache的日志报的错误如下:

The following error occurred while trying to extract file(s) to the Python egg
cache:

  [Errno 13] Permission denied: '/root/.python-eggs'

The Python egg cache directory is currently set to:

  /root/.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.

 

嗯,权限问题,本来以为很好解决的,结果还是搞了好久...

阅读剩余部分...