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

后端 未结 8 872
情歌与酒
情歌与酒 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:25

    I found that I had Python 3.4 and 2.7 installed concurrently, and the pip install django==1.7 command automagically decided the Python 3.4 /dist-packages was where it should live. I CD'd over to the Python 2.7 directory and re-piped it... and all is well.

提交回复
热议问题