简体   繁体   中英

“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

when I try to run inside of a 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 "

I have done the following so far:

  • removed and re-installed django
  • removed and re-installed project directory
  • removed first line from manage.py that defines the python shell to use
  • verified file has permission to execute
  • re-installed 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

for whatever reason when I created a new virtualenv and copied the bin directory over the existing everything started working

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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