Two steps to resolve this problem. open your terminal. 1.ps -fA | grep python 找到 python flask run 进程号 2. kill -9 进程号