ImportError: Couldn't import Django

前端 未结 22 1962
无人共我
无人共我 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:46

    if you don't want to deactivate or activate the already installed venv just ensure you have set the pythonpath set

    set pythonpath=C:\software\venv\include;C:\software\venv\lib;C:\software\venv\scripts;C:\software\venv\tcl;C:\software\venv\Lib\site-packages;

    and then execute

    "%pythonpath%" %venvpath%Scripts\mytestsite\manage.py runserver "%ipaddress%":8000

提交回复
热议问题