No module named

  • Posted July 26, 2014

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

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

Whilst following instructions: Step 8 in How To Install and Configure Django with Postgres, Nginx, and Gunicorn

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

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.

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

$ python syncdb

Needs to be $ sudo python syncdb