OSError: Could not find kaggle.json. Make sure it‘s located in /home/user/.kaggle.

Bug: OSError: Could not find kaggle.json. Make sure it’s located in /home/jyjiang/.kaggle. Or use the environment method.
原因:当利用kaggle上传和下载文件时,kaggle需要知道账号的身份信息。
解决:kaggle --> My Account --> API --> Create New API Token,下载得到kaggle.json文件,放在/home/user/.kaggle隐藏文件夹下
OSError: Could not find kaggle.json. Make sure it‘s located in /home/user/.kaggle._第1张图片
kaggle.json

{
     "username":"***","key":"****1cfb***ef5d*****"}
pip install kaggle #安装kaggle API
kaggle --version #查看kaggle版本

在这里插入图片描述

你可能感兴趣的:(Bug,Python,python,json,bug)