Error "No such file or directory" when running Django ./manage.py Error "No such file or directory" when running Django ./manage.py bash bash

Error "No such file or directory" when running Django ./manage.py


Likely, the reason is because your line endings in the manage.py file are \n instead of \r\n. As a result the #! hash-bang is misinterpreted.

This happens to me when I use a Windows based text-editor for my linux connection.


The #! hash-bang line doesn't point to your virtualenv python; replace the first line with:

#!/path/to/virtualenv/bin/python


In my django project, the command ./manage.py [command] results in this error message:

: No such file or directory

The command python manage.py [command] works well

If specifying the interpreter makes it work, then it is the first line that must be wrong:

#!/usr/bin/env python

Try:

#!/usr/bin/python

(or wherever the interpreter is. Find it with: which python).