No module named

July 26, 2014 6.7k 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
  • Whilst following instructions:
    Step 8 in How To Install and Configure Django with Postgres, Nginx, and Gunicorn

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 :) :)

Have another answer? Share your knowledge.