无法找到django模块。导入错误

时间:2018-04-09 19:51:16

标签: python django pip

我已经安装了Django,它已经在包中了。但是,当我运行python manage.py runserver.I我收到此错误

Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
ImportError: No module named 'django'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "manage.py", line 14, in <module>
    ) from exc
ImportError: Couldn't import Django. Are you sure it's installed and available on your PYTHONPATH environment variable? Did you forget to activate a virtual environment?

0 个答案:

没有答案