ImportError: Couldn't import Django

前端 未结 22 1972
无人共我
无人共我 2020-12-05 01:59

I\'ve already configured virtualenv in pycharm, when using the python manage.py command, this is error shown:

E:\\video course\\Python\\code\\web_worker\\MxO         


        
22条回答
  •  甜味超标
    2020-12-05 02:37

    If you are working on a machine where it doesn't have permissions to all the files and moreover you have two versions such as default 2.7 & latest 3.6 then while running the command use the python version with the command. If the latest python is installed with sudo then run the command with sudo.

    exp:

    sudo python3.6 manage.py runserver
    

提交回复
热议问题