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

相关推荐
Mr.朱鹏1 天前
【Python 进阶 | 第四篇】Psycopg3 + Flask 实现 PostgreSQL CRUD 全流程:从连接池到RESTful接口
python·postgresql·flask·virtualenv·fastapi·pip·tornado
qq_589568101 天前
java学习笔记,包括idea快捷键
java·ide·intellij-idea
一次旅行1 天前
IDEA安装CC GUI新手指南
java·ide·intellij-idea
程序设计实验室1 天前
Zed AI 白嫖免费模型,搭配 DeepSeek v4,玩转 Agent 编程技巧
ide
小敬爱吃饭1 天前
知识图谱实战第一章:知识图谱全景解析其定义、技术演进与十大应用场景
人工智能·python·目标检测·自然语言处理·flask·nlp·知识图谱
-星空下无敌1 天前
IDEA 2025.3.1最新最全下载、安装、配置及使用教程(保姆级教程)
java·ide·intellij-idea
Gene_20221 天前
ubuntu22.04安装Claude Code及其在vscode跑通
ide·vscode·arcgis
isaac.easy1 天前
实战指南:CodeBuddy IDE × GLM-4.7 × Spec-Kit 构建智能化开发工作流
ide
shuangrenlong1 天前
android studio突然一直importing卡住
android·ide·android studio
想躺平的小羊1 天前
IDEA 如何显示或关闭项目类的结构(类的方法)
java·ide·intellij-idea