
강의영상과 다른 결과가 나왔습니다
flask 실행코드:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def home():
return 'This is Home!'
if __name__ == '__main__':
app.run('0.0.0.0',port=5000,debug=True
나온 결과:
/Users/ssaengi/Desktop/Sparta/projects/prac/venv/bin/python /Users/ssaengi/Desktop/Sparta/projects/prac/app.py
* Serving Flask app 'app'
* Debug mode: on
Address already in use
Port 5000 is in use by another program. Either identify and stop that program, or start the server with a different port.
On macOS, try disabling the 'AirPlay Receiver' service from System Preferences -> Sharing.
종료 코드 1(으)로 완료된 프로세스
어떻게 해야하나요?
