Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- Kaggle
- ChatGPT
- 프로그래머스
- 데이콘
- github
- 자연어처리
- Docker
- SW Expert Academy
- hackerrank
- Real or Not? NLP with Disaster Tweets
- leetcode
- PYTHON
- 프로그래머스 파이썬
- 백준
- AI 경진대회
- gs25
- 파이썬
- 편스토랑
- 맥북
- programmers
- 더현대서울 맛집
- 캐치카페
- 금융문자분석경진대회
- Git
- 편스토랑 우승상품
- dacon
- 우분투
- ubuntu
- Baekjoon
- 코로나19
Archives
- Today
- Total
목록
반응형
FastAPI APIRouter Tags Error (1)
반응형
솜씨좋은장씨
[FastAPI] APIRouter TypeError: __init__() got an unexpected keyword argument 'tags' 해결방법 (Python)
FastAPI로 API를 개발하면서 from fastapi import APIRouter router = APIRouter(tags=["template crud"]) 위처럼 FastAPI의 APIRouter를 활용하여 개발한 후에 호기롭게 실행하였는데...! router = APIRouter(tags=["template crud"]) TypeError: __init__() got an unexpected keyword argument 'tags' 위처럼 APIRouter는 tags라는 항목을 가지고 있지 않다는 오류가 발생하였습니다. 원인 원인은 내 컴퓨터 또는 서버에 설치되어있는 FastAPI의 버전이 낮아 발생하는 오류입니다. 해결방법 pip를 최신버전으로 업데이트 한 이후에 $ python3 -m ..
Programming/Python
2021. 8. 9. 17:33
반응형