在學習flask時遇到The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again這個錯誤 ,由於我們的網址是http://127.0.0.1:5000/
很自然的想到是不是端口出現了問題,打開終端輸入出現了端口被占用的信息:
查看是被什么程序占用的:輸入 通過pid號,尋找程序,
是python.exe占用了端口,於是我們結束進程:輸入 taskkill /f /t/im python.exe
此時我們在運行程序就可以了