Running django in virtualenv - ImportError: No module named django.core.management?

后端 未结 8 1006
情歌与酒
情歌与酒 2021-02-04 11:56

I have installed Django after activating my virtualenv but still I am getting following error

from django.core.management import execute_from_command_line
Import         


        
8条回答
  •  时光取名叫无心
    2021-02-04 12:24

    I had the same problem when I was running Django from inside a virtual environment and then using another terminal window ran the command python manage.py shell without first switching to the venv.

    The problem was resolved after I switched back.

提交回复
热议问题