标签: python-egg-cache

什么是Python egg缓存(PYTHON_EGG_CACHE)?

我刚刚在我的开发机器上从Python 2.6.1升级到2.6.4,并在启动python脚本时显示以下消息:

无法将文件提取到egg缓存中

尝试将文件提取到Python egg缓存时发生以下错误:

[Errno 13]权限被拒绝:'/ var/www/.python-eggs'

Python egg缓存目录当前设置为:

/var/www/.python-eggs

也许您的帐户没有对此目录的写入权限?您可以通过将PYTHON_EGG_CACHE环境变量设置为指向可访问的目录来更改缓存目录.

python文档中没有任何内容,所以我对于放置此目录及其用途的最佳实践有点不知所措.

有人可以解释一下Python egg缓存是什么吗?

另外,你能解释为什么/如何与site-packagesPython用来存储鸡蛋的目录不同(据我所知)?

python python-egg-cache

71
推荐指数
3
解决办法
6万
查看次数

Django:PYTHON_EGG_CACHE,访问被拒绝错误

我正在服务器上部署我的django应用程序,在最后阶段我收到此错误:

ExtractionError at /admin/

Can't extract file(s) to egg cache

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

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

The Python egg cache directory is currently set to:

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

Request Method:     GET
Request URL:    http://go-ban.org/admin/
Exception Type:     ExtractionError
Exception Value:    

Can't …
Run Code Online (Sandbox Code Playgroud)

python django python-egg-cache

2
推荐指数
1
解决办法
2872
查看次数

如何修复开始提供与PYTHON_EGG_CACHE相关的错误的Trac安装?

我们一直在使用Trac进行任务/缺陷跟踪,事情进展顺利,但今天早上它开始提供500错误.查看Apache error_log,我得到一个最终的堆栈跟踪:

PythonHandler trac.web.modpython_frontend:
  ExtractionError: Can't extract file(s) to egg cache

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

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

The Python egg cache directory is currently set to:

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

所以我明确地将PYTHON_EGG_CACHE设置为/ srv/trac/plugin-cache.我重新启动了Apache.然而我得到了同样的错误(它仍然说"鸡蛋缓存目录当前设置为:\n \n /.python_eggs.")

我该怎么办?重新安装Trac最简单的事情是什么?如果我走这条路,我需要采取哪些措施来确保我不会丢失现有数据?

python configuration trac python-egg-cache

1
推荐指数
1
解决办法
1949
查看次数

标签 统计

python ×3

python-egg-cache ×3

configuration ×1

django ×1

trac ×1