Skip to content Skip to sidebar Skip to footer

Localhost Has Stopped Updating When Various Flask/python Scripts Are Run, How Do I Fix This?

I've been testing out a few .py files with Flask, referring to 127.0.0.1:5000 frequently to see if they're interfacing correctly with the HTML, after running the .py I'm getting th

Solution 1:

After tracking the processes down by running $ netstat -a -o in the command line, it turns out it wasn't a code error, but rather multiple instances of pythonw.exe, which can be taken care of in the Task Manager. I'm not sure why the processes keep running after I close out of all python windows, or why it keeps communicating with 127.0.0.1:5000, however, so thoughts on this would still be appreciated.


Solution 2:

Thats right. Just press 'Ctrl+Shift+Esc' to open the task manager. Scroll down to find the 'python3.exe' files and end the task manually.

The reason is 'ctrl+c' doesnt work for me (it just copies the text on terminal window), so I have to manually kill the python interpreter running in the background. Its hard work, but hey atleast you dont have to restart your computer everytime!!


Post a Comment for "Localhost Has Stopped Updating When Various Flask/python Scripts Are Run, How Do I Fix This?"