【发布时间】:2022-12-28 16:04:38
【问题描述】:
I have a similar problem as: Kaggle API issue "Could not find kaggle.json. Make sure it's located in......"
I have the same error when I type kaggle competitions download -c spaceship-titanic
But in my case the folder ".kaggle/" is actually empty. So I assume I downloded kaggle api incorrectly, how I download it correctly?
Things I have tried acccording to https://github.com/Kaggle/kaggle-api
pip install kaggle, pip install --user kaggle, sudo pip install kaggle
The first two compiled, but didnot create the kaggle.json file.
The third didnot compiled and it said sudo command not found.
-
Your json will come only after you generate the API from account in Kaggle. You need to do this step 2. Setting up the API token mentioned in adityashrm21.github.io/Setting-Up-Kaggle
-
I alredy have an account. I dont success with step 2 in this mannual. Firstly, I didn't find the "your profile" button he talks about ... but I found a button that leads to my profile so I assumed it is it. And inside my profile page I didn't found anything about api.
-
login to kaggle. On the top right there is a small icon, click that. Then select account. under account. you will see API option. in that you can select create new api token