Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade --quiet
import kaggle
--------------------------------------------------------------------------- OSError Traceback (most recent call last) <ipython-input-3-2e5e3441a2d1> in <module>() ----> 1 import kaggle /usr/local/lib/python3.6/dist-packages/kaggle/__init__.py in <module>() 21 22 api = KaggleApi(ApiClient()) ---> 23 api.authenticate() /usr/local/lib/python3.6/dist-packages/kaggle/api/kaggle_api_extended.py in authenticate(self) 164 raise IOError('Could not find {}. Make sure it\'s located in' 165 ' {}. Or use the environment method.'.format( --> 166 self.config_file, self.config_dir)) 167 168 # Step 3: load into configuration! OSError: Could not find kaggle.json. Make sure it's located in /root/.kaggle. Or use the environment method.
pip install kaggle
Requirement already satisfied: kaggle in /usr/local/lib/python3.6/dist-packages (1.5.10) Requirement already satisfied: six>=1.10 in /usr/local/lib/python3.6/dist-packages (from kaggle) (1.15.0) Requirement already satisfied: python-dateutil in /usr/local/lib/python3.6/dist-packages (from kaggle) (2.8.1) Requirement already satisfied: python-slugify in /usr/local/lib/python3.6/dist-packages (from kaggle) (4.0.1) Requirement already satisfied: certifi in /usr/local/lib/python3.6/dist-packages (from kaggle) (2020.12.5) Requirement already satisfied: tqdm in /usr/local/lib/python3.6/dist-packages (from kaggle) (4.41.1) Requirement already satisfied: requests in /usr/local/lib/python3.6/dist-packages (from kaggle) (2.23.0) Requirement already satisfied: urllib3 in /usr/local/lib/python3.6/dist-packages (from kaggle) (1.24.3) Requirement already satisfied: text-unidecode>=1.3 in /usr/local/lib/python3.6/dist-packages (from python-slugify->kaggle) (1.3) Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.6/dist-packages (from requests->kaggle) (3.0.4) Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.6/dist-packages (from requests->kaggle) (2.10)
from google.colab import files
files.upload()
Saving kaggle.json to kaggle.json
{'kaggle.json': b'{"username":"amitsinghkathayat","key":"fc20ebb925b252bb1afd51c85164f10d"}'}
!mkdir -p ~/.kaggle
!cp kaggle.json ~/.kaggle/
!chmod 600 ~/.kaggle/kaggle.json