简体   繁体   English

django-admin错误的解释器:权限被拒绝

[英]django-admin bad interpreter: Permission Denied

I'm trying to use django on a Suse server to use it in production with apache and mod_python but I'm finding some problems. 我正在尝试在Suse服务器上使用django在apache和mod_python的生产环境中使用它,但是我发现了一些问题。

I have installed python 2.7.9 (the default version was 2.6.4) and django 1.7. 我已经安装了python 2.7.9(默认版本是2.6.4)和django 1.7。 I had some problem with the installation but they are now solved. 我在安装时遇到了一些问题,但现在已解决。

My current problem is that when I try to execute django-admin I get this error: 我当前的问题是,当我尝试执行django-admin时出现此错误:

-bash: /usr/local/bin/django-admin: .: bad interpreter: Permission denied -bash:/ usr / local / bin / django-admin:。:错误的解释器:权限被拒绝

I have searched through the web but I have not found a solution. 我已经在网上搜索过,但没有找到解决方案。 I have tried to make the file executable: sudo chmod +x django-admin and the problem remains equal. 我试图使该文件可执行:sudo chmod + x django-admin,问题仍然存在。

Any idea? 任何想法? Thanking you in advance. 预先感谢您。

It sounds like the python interpreter is what you don't have permission for. 听起来好像python解释器是您没有权限的对象。 Do you have permission to run python? 您是否有权运行python?

had you try add your user to the group with persmission for execute python? 您是否尝试过将用户添加到允许执行python的组中? you can look the file /etc/passwd . 您可以查看文件/ etc / passwd。 In these file you can describe each permission. 在这些文件中,您可以描述每个权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM