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.
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.
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.)
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With