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

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

    I am using virtual environment so I added this line in manage.py:

    sys.path.append('./myvenv/lib/python3.5/site-packages')
    

    in which myvenv is the name of my virtual environment and version of my installed Python is 3.5. This solved my issued.

提交回复
热议问题