'pip install kaggle' works fine - but 'kg command not found'
The same problem for me. Kaggle is correctly installed with pip install kaggle --user
, but "kaggle command was not found".
I located the Kaggle executable in ~/.local/bin/kaggle
and solved it creating a symbolic link to /usr/bin
:
ln -s ~/.local/bin/kaggle /usr/bin/kaggle
Shortly after you asked this question, Kaggle released an official API which I recommend you use in place of kaggle-cli. pip install kaggle
will install the official API which supports these commands:
kaggle competitions {list, files, download, submit, submissions}
kaggle datasets {list, files, download, create, version, init}
kaggle config {view, set, unset}
Check out the documentation here. After installing, you will also need to generate an API token from your Kaggle user profile "Account" tab.