API의 Create New API Token 버튼 클릭 후 kaggle.json 다운받기
C 드라이브의 사용자/{계정} 폴더 하위에 .kaggle 폴더 생성 후 kaggle.json 넣어두기
예시 : C:\Users\skim\.kaggle\kaggle.json
터미널에서 kaggle 명령어 입력해서 설정 확인하기
# 정상 결과
C:\Users\skim>kaggle
usage: kaggle [-h] [-v] {competitions,c,datasets,d,kernels,k,config} ...
kaggle: error: the following arguments are required: command
# kaggle.json이 없는 경우
C:\Users\skim>kaggle
Traceback (most recent call last):
File "C:\Users\skim\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\skim\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\skim\AppData\Local\Programs\Python\Python310\Scripts\kaggle.exe\__main__.py", line 4, in <module>
File "C:\Users\skim\AppData\Local\Programs\Python\Python310\lib\site-packages\kaggle\__init__.py", line 23, in <module>
api.authenticate()
File "C:\Users\skim\AppData\Local\Programs\Python\Python310\lib\site-packages\kaggle\api\kaggle_api_extended.py", line 164, in authenticate
raise IOError('Could not find {}. Make sure it\'s located in'
OSError: Could not find kaggle.json. Make sure it's located in C:\Users\skim\.kaggle. Or use the environment method.