简体   繁体   English

Python本地主机服务器

[英]Python localhost server

Whenever I use python manage.py runserver on Windows PowerShell it causes Python to crash: "Python has stopped working" window pops up. 每当我在Windows PowerShell上使用python manage.py runserver ,都会导致Python崩溃:弹出“ Python停止工作”窗口。 Any idea why? 知道为什么吗? I've tried rebooting, which causes a different type of error: 我尝试重新启动,这会导致另一种类型的错误:

python.exe: can't open file '.\\maanage.py': [Errno 2] No such file or directory. python.exe:无法打开文件'。\\ maanage.py':[错误2]没有此类文件或目录。

I created another project and tried runserver and again it caused the first error. 我创造了另一个项目,并试图runserver ,再次就引起了第一个错误。 All installation commands ran smoothly, but why am I facing this error? 所有安装命令运行均正常,但是为什么会遇到此错误?

Make sure you're spelling the file name correctly. 确保正确拼写了文件名。
maanage.py != manage.py maanage.py!= manage.py

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM