Error while importing Kaggle dataset on Colab

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

    This simple thing did it for me on Google Cola.

    !echo '{"username":"USERNAME","key":"KEY"}' > ~/.kaggle/kaggle.json
    !kaggle datasets download -d mmoreaux/environmental-sound-classification-50
    

    --

    edit, might have changed to:

    !echo '{"username":"USERNAME","key":"KEY"}' > /root/.kaggle/kaggle.json
    !kaggle datasets download -d mmoreaux/environmental-sound-classification-50
    

提交回复
热议问题