No module named

Posted July 26, 2014 25.2k views

From $ python syncdb
gives Error message:
File “”, line 8, in <module>
from import executefromcommand_line
ImportError: No module named

  1. How do I update Django packages in virtualenv?
  2. Shouldn’t be part of Django core?
1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

$ python syncdb

Needs to be $ sudo python syncdb

I had the same problem but when I run python runserver localhost:port

I have changed the above to:

sudo python runserver localhost:port

It works :) :)