커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
flask관련 질문
undefined주차
북마크
김*연
댓글
10
추천
0
조회수
38
조회수
38
답변 완료

"/Users/ksy/Desktop/스파르타 코딩/projects/prac/venv/bin/python" "/Users/ksy/Desktop/스파르타 코딩/projects/prac/app.py"

WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.

 * 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(으)로 완료된 프로세스

이렇게 오류가 나는데 어떻게 해야할 까요??


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)

코드는 위와 같이 입력했습니다.

취소
 공유
취소
댓글 0
댓글 알림
나의얼굴