【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可以修改为自己输入的内容,可以参考下面的图片。

相关推荐
ITmaster073113 小时前
告别 IDE?Android CLI 来了,开发进入 AI Agent 时代
android·ide·人工智能
weixin_BYSJ198714 小时前
springboot3家政平台小程序--附源码00904
java·javascript·spring boot·python·django·flask·php
接针17 小时前
Pycharm远程连接Ubuntu的conda环境
ubuntu·pycharm·conda
jiang_changsheng19 小时前
详细教程__--PyCharm Terminal--切conda环境详解
ide·pycharm·conda
2601_960906721 天前
科技“无人区”跋涉,难度高、不确定性大
windows·macos·pycharm·myeclipse
第二个人2 天前
Python Web开发:从Flask到FastAPI,我经历了什么
前端·python·flask
Irene19912 天前
怎么设置 PyCharm 使用 VSCode 的快捷键,推荐保留的原生快捷键(特色功能不建议覆盖,否则丧失效率优势)Ctrl+Alt+L:代码格式化
vscode·pycharm·快捷键
放学校门口见2 天前
vscode部署stm32开发调试环境
ide·vscode·stm32
這花開嗎3 天前
2026年TTS文字转语音API哪家强?批量自动化配音成本与技术实测
python·flask·自动化
Albart5753 天前
2026年Python入门路线图:从零到实战的30天逐日详解(三)
学习·flask·#python30 天入门·python 实战教程·pytest 单元测试·python 虚拟环境·logging 日志