Error while importing Kaggle dataset on Colab

后端 未结 7 2105
长发绾君心
长发绾君心 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:06

    Make sure you installed kaggle api first: pip install kaggle. Then grab your API tokens from https://www.kaggle.com/kaggle_user_name/account:

    And just download your data for the competition (in here dogs-vs-cats-redux-kernels-edition)

    ! touch /root/.kaggle/kaggle.json
    ! chmod 600 /root/.kaggle/kaggle.json
    ! echo '{"username":"kaggle_user_name","key":"0000000000000000000000000000000000"}' >> /root/.kaggle/kaggle.json
    ! kaggle competitions download -c "dogs-vs-cats-redux-kernels-edition"
    

提交回复
热议问题