为了账号安全,请及时绑定邮箱和手机立即绑定

python manage.py报错

D:\myblog>python manage.py

Traceback (most recent call last):

  File "manage.py", line 8, in <module>

    from django.core.management import execute_from_command_line

ModuleNotFoundError: 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?


正在回答

2 回答

我也是这个错了。

0 回复 有任何疑惑可以回复我~

首先你就在cmd下试试import django报错吗,没报错的话你看一下你的环境变量,有没有配置django的,没有的话搜django环境变量配置

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
django入门与实践
  • 参与学习       65159    人
  • 解答问题       869    个

手把手带你进入Django开发的大门,充分领略Django的魅力

进入课程

python manage.py报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信