简体   繁体   English

“ python manage.py runserver” =无法执行二进制文件错误(django)

[英]“python manage.py runserver” = cannot execute binary file error (django)

new one to me commend I'm running ubuntu 10.04 relatively fresh install on my laptop manually installed django 1.2.1 向我推荐的新产品我正在运行ubuntu 10.04,在笔记本电脑上手动安装django 1.2.1时相对较新地安装

when I try to run inside of a virtualenv 当我尝试在virtualenv内部运行时

python manage.py **any command**

I get the error "bash: /home/alvin/workspace/storm-guard/virtual_damage_restoration/bin/python: cannot execute binary file " 我收到错误消息:“ bash:/ home / alvin / workspace / storm-guard / virtual_damage_restoration / bin / python:无法执行二进制文件”

I have done the following so far: 到目前为止,我已经完成了以下工作:

  • removed and re-installed django 删除并重新安装django
  • removed and re-installed project directory 删除并重新安装了项目目录
  • removed first line from manage.py that defines the python shell to use 从manage.py中删除了第一行,该行定义了要使用的python shell
  • verified file has permission to execute 验证文件具有执行权限
  • re-installed virtualenv 重新安装了virtualenv

at this point I'm scratching my head 在这一点上,我挠头

any advice is greatly apreciated 任何建议都非常感谢

the virtualenv I was attempting to use was copied from another computer 我尝试使用的virtualenv是从另一台计算机复制的

for whatever reason when I created a new virtualenv and copied the bin directory over the existing everything started working 无论出于什么原因,当我创建一个新的virtualenv并将bin目录复制到现有的所有东西上时,它们开始工作

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

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