When executing the following lines,
!pip install kaggle
!kaggle competitions download -c dogs-vs-cats -p /content/
I got the following erro
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.