简体   繁体   English

OSError:找不到 kaggle.json。 确保它位于 C:\Users\Lior\.kaggle 中。 或者使用环境方法

[英]OSError: Could not find kaggle.json. Make sure it's located in C:\Users\Lior\.kaggle. Or use the environment method

I have a similar problem as: Kaggle API issue "Could not find kaggle.json. Make sure it's located in......"我有一个类似的问题: Kaggle API 问题“找不到 kaggle.json。确保它位于......”

I have the same error when I type kaggle competitions download -c spaceship-titanic我在输入kaggle competitions download -c spaceship-titanic时遇到同样的错误

But in my case the folder ".kaggle/" is actually empty.但在我的情况下,文件夹“.kaggle/”实际上是空的。 So I assume I downloded kaggle api incorrectly, how I download it correctly?所以我假设我错误地下载了 kaggle api,我如何正确下载它?

Things I have tried acccording to https://github.com/Kaggle/kaggle-api我根据https://github.com/Kaggle/kaggle-api尝试过的事情

pip install kaggle , pip install --user kaggle , sudo pip install kaggle pip install kagglepip install --user kagglesudo pip install kaggle

The first two compiled, but didnot create the kaggle.json file.前两个已编译,但没有创建 kaggle.json 文件。

The third didnot compiled and it said sudo command not found.第三个没有编译,它说找不到 sudo 命令。

用于查找帐户页面的示例照片

Sample photo for finding the accounts page用于查找帐户页面的示例照片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM