Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
内部服务器错误服务器遇到内部错误,无法完成您的请求
最简单的文件运行都报错,之前可以运行出hello,把它多加几个单词刷新不变,重新运行又报错,恢复正常的代码重新打开还是报错😭
(命令行输入过
$env:FLASK_APP="blog.py"
set FLASK_ENV=development
flask run
安装了各种库
试过好多方法了还是不行)
源代码
from flask import Flask
app = Flask(name)
@app.route('/')
def hello_world():
return 'Hello World!'
if name == 'main':
app.run()
刚刚按照评论重新激活虚拟环境下载安装包,但是又报错了,在网上搜的方法好像也不行。求大佬帮助!