📜  为 Kaggle 下载设置 Colab - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:50.042000             🧑  作者: Mango

代码示例1
! pip install kaggle #  Install the Kaggle library
! mkdir ~/.kaggle # Make a directory named “.kaggle”
!cp /content/drive/MyDrive/kaggle.json ~/.kaggle/kaggle.json
"""
Copy the “kaggle.json” file from the mounted google drive to the current instance storage.
The Google drive is mounted under the “./content/drive/MyDrive” path. The json file is
stored in the G-Drive Root folder
"""
! kaggle competitions download -c  # Download competition datasets from kaggle