欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Django报错:python: can‘t open file ‘manage.py‘: [Errno 2] No such file or directory

程序员文章站 2022-07-15 22:16:37
...

Django运行python manage.py runserver报错

E:\电脑桌面\final>python manage.py runserver
python: can't open file 'manage.py': [Errno 2] No such file or directory

原因:当前目录下找不到manage.py
解决:
1.看自己的manage.py在什么路径下
Django报错:python: can‘t open file ‘manage.py‘: [Errno 2] No such file or directory
2.通过cd命令进入对应的路径
Django报错:python: can‘t open file ‘manage.py‘: [Errno 2] No such file or directory
3.重新运行项目
Django报错:python: can‘t open file ‘manage.py‘: [Errno 2] No such file or directory