首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >上传django时出错PYTHON_EGG_CACHE

上传django时出错PYTHON_EGG_CACHE
EN

Stack Overflow用户
提问于 2017-03-24 13:56:04
回答 1查看 291关注 0票数 0

我正在尝试上传django项目的实况,并且我不断地收到以下错误:

代码语言:javascript
复制
pkg_resources.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: '/opt/bitnami/.tmp/simplejson-2.0.9-py2.7-linux-x86_64.egg-tmp/simplejson/tmpuYcIYB.$extract'

The Python egg cache directory is currently set to:

/opt/bitnami/.tmp

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

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-27 12:33:18

这是一个权限/所有权问题。您可以使用以下命令来解决它:

sudo su bitnami sudo find /opt/bitnami/apps/django/ -type d -exec chmod 755 {} \; sudo find /opt/bitnami/apps/django/ -type f -exec chmod 644 {} \; sudo chown -R bitnami:daemon /opt/bitnami/apps/django/

还必须将项目部署到以下路径:/opt/bitnami/apps/django/django_projects/YOURPROJECT

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43001357

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档