Django - “no module named django.core.management”

前端 未结 21 1664
天涯浪人
天涯浪人 2020-12-02 11:46

I get the following error when trying to run Django from the command line.

File manage.py, line 8, in 
     from django.core.management import          


        
21条回答
  •  伪装坚强ぢ
    2020-12-02 12:27

    I am having the same problem while running the command-

    python manage.py startapp < app_name >

    but problem with me is that i was running that command out of virtual environment.So just activate your virtual environment first and run the command again -

提交回复
热议问题