【Internal Server Error】pycharm解决关闭flask端口依然占用问题

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.

起因:

我们在运行flask后,断开服务依然保持运行,这是因为这是一种伪断开,只是在pycharm这里中止了,但是python解释器依旧在运行这个服务。

解决方法:

我们只要关闭运行flask的python解释器就行了

利用cmd关闭监听这个解释器就行

复制代码
netstat -ano | findstr 5000

这里的5000可以根据自己的需要更改

复制代码
taskkill /pid 7076 /f

7076可以修改为自己输入的内容,可以参考下面的图片。

相关推荐
小王C语言1 小时前
vscode智能提示问题、跳转问题
ide·vscode·编辑器
南知意-4 小时前
IDEA 2026.1最新版安装教程
java·ide·intellij-idea·idea安装·idea激活
编码者卢布4 小时前
【Azure AI Search】 searchMode=any 和 searchMode=all 有什么区别?
人工智能·python·flask
隔窗听雨眠5 小时前
Typora插件开发指南:从零打造IDE级写作环境
ide·typora
专注_每天进步一点点7 小时前
IDEA中,Apifox Helper 的 2.0.15-243版本的插件 导出指定的接口,入参的中文名为空,描述为空
java·ide·intellij-idea
郝亚军7 小时前
如何在vscode上运行python程序
ide·vscode·编辑器
Arvin.Angela7 小时前
VsCode 安装文档
ide·vscode·编辑器
郝亚军8 小时前
Visual Studio 2022安装for C++桌面开发
c++·ide·visual studio
北凉军9 小时前
更换PyCharm 任务栏图标
ide·python·pycharm