Error while importing Kaggle dataset on Colab

后端 未结 7 2009
长发绾君心
长发绾君心 2020-12-30 12:41

When executing the following lines,

!pip install kaggle
!kaggle competitions download -c dogs-vs-cats -p /content/

I got the following erro

7条回答
  •  隐瞒了意图╮
    2020-12-30 13:08

    Check the permissions on your kaggle.json file as well. I got the same error because after running a different a kaggle command, I got this warning:

    Warning: Your Kaggle API key is readable by other users on this system! To fix this, you can run 'chmod 600 /...etc/kaggle.json'

    I ran what they suggested, and got the same error you did until I changed the permissions back to what they'd been before.

    This is my own machine (the other user is a mentor I trust), so I used chown 666 /.../kaggle.json and that solved it, but be careful and only give permissions based on that make sense with your respective setup.

提交回复
热议问题