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

相关推荐
jsjzsl22 小时前
独立自由度框架下位置自由度的本体论特征、物理现象与新技术路径
python·flask·fastapi
kqz20142 小时前
Android Studio Commit 面板临时文件.gitignore
ide·android studio·intellij-idea
天天喝旺仔3 小时前
AI 编程实战:用 Cursor + Claude Code + Copilot 把效率翻倍
ide·chatgpt·prompt·copilot·ai编程
captain3764 小时前
网络编程(1)
java·网络·ide·java-ee
2601_962295334 小时前
志学老人学Ai 4:安装开发Python源程序 的Pycharm编程软件
人工智能·pycharm·量化交易·python开发·集成开发环境
国产化创客5 小时前
创客开发入门(三)Arduino IDE 开发环境
ide·单片机·嵌入式硬件·课程设计·智能硬件
2601_962296285 小时前
python初学者怎么选IDE
ide·python·开发环境·初学者·工具选择
程序员阿明17 小时前
idea把插件啥的不默认放在C盘
java·ide·intellij-idea
我是Superman丶20 小时前
Arduino IDE 安装教程:Windows/macOS/Linux 开发环境搭建
ide·windows·macos
LaughingZhu1 天前
Product Hunt 每日热榜 | 2026-09-08
java·ide·深度学习·百度·intellij-idea