Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 413
user1230795 Avatar asked Jan 21 '18 18:01

user1230795


People also ask

How do I download kaggle command line?

API credentials To use the Kaggle API, sign up for a Kaggle account at https://www.kaggle.com. Then go to the 'Account' tab of your user profile ( https://www.kaggle.com/<username>/account ) and select 'Create API Token'. This will trigger the download of kaggle.

How do I download kaggle dataset using API command?

Installation. Ensure you have Python and the package manager pip installed. Run the following command to access the Kaggle API using the command line: pip install kaggle (You may need to do pip install --user kaggle on Mac/Linux. This is recommended if problems come up during the installation process.)


1 Answers

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
like image 138
gilgorio Avatar answered Oct 10 '22 21:10

gilgorio