No module named

July 26, 2014 21.1k 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.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!