The python-flask problem (oserror: [errno 98] address already in use flask)

Sanzid Kawsar
Jul 9, 2018 · 1 min read

I was having a look at python-flask framework some days ago. In my Ubuntu 18.04 terminal was showing a error as below when I was running flask run-

oserror: [errno 98] address already in use flask

I was trying heart and soul to solve this. Finally got a solution-

1. Paste following code in terminal

ps -fA | grep python

You will get a pid number by naming of your flask number. Now copy the pid number from second column of your project row of terminal output.

2. Then write as below-

kill -9 pid

The terminal will restart and then the command-

flask run

Will work fine!

Thank you.. :)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade