ModuleNotFoundError: No module named 'django'

后端 未结 3 1939
离开以前
离开以前 2021-01-23 02:38

I\'m trying make online a project but there is an error i can\'t solve myself. I already installed django but the server give me this error. Virtualenv is also active.

<

3条回答
  •  深忆病人
    2021-01-23 03:14

    This might be answered many times, but recently I upgraded my ubuntu 18.04 to 19.10, and without changing any other thing, my running django server stopped running with this error: ModuleNotFoundError: No module named 'django'. I repeated the same install, python3 -m pip install django and it didn't help. Finally somebody else told me to use

    sudo python3 -m pip install django

    because I run the server with sudo python3 manage.py runserver 0.0.0.0:80, which actually worked for me.

提交回复
热议问题