Search code examples
pipubuntu-16.04kaggle

'pip install kaggle' works fine - but 'kg command not found'


I installed kaggle-cli just fine.. everything went smoothly or so pip says.

But when I try to run the kg command or just kg --version, I get

kg command not found

I can see Kaggle in Python system packages and all the py and pyc files are there. But like no bin directory or anything.

I tried to find a similar issue online with no success - so I thought I would try here.

I am on an Ubuntu app for Windows 10. Everything else in terms of Python, Keras, Theano, etc. for my machine learning rig works just fine.


Solution

  • 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.