Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API - issue with"  kaggle: command not found error " #59

Closed
dskrief opened this issue Jun 24, 2018 · 6 comments
Closed

API - issue with"  kaggle: command not found error " #59

dskrief opened this issue Jun 24, 2018 · 6 comments

Comments

@dskrief
Copy link

dskrief commented Jun 24, 2018

Hello.
I need to install the Kaggle API to download my data for the competition but I am stuck here and please request for your help and guidance.
I have a MacBook Pro OS High Sierra.
When I unsuccessfully tried launching in the command line, the following command for data collection (and from various directory location on my Mac) :
kaggle competitions download -c home-credit-default-risk

, then I have received the following message **** "kaggle: command not found error" **** and the « ensure that your python binaries are on your path », but I don't understand the latest message concretely.

As a reference I already did or tried the following :

  • pip install --user kaggle

This placed various Kaggle files in :

  • /Users/laurxxtkrxxef/.local/bin/kaggle

  • and in : /Users/laurxxtkrxxef/.local/lib/python3.6/site-packages/kaggle-1.3.11.1.dist-info

  • I also placed my credentials API as requested in the directory .kaggle/kaggle.json

  • And I accepted my above mentioned competition General terms and conditions.

Any help or advice would be appreciated to help me proceed.
Thank you in advance.

Best regards, Laurent

@ghost
Copy link

ghost commented Jun 25, 2018

Could you please share the results of echo $PATH?

@dskrief
Copy link
Author

dskrief commented Jun 25, 2018

Hello Rebecca,
Thank you for your interest here.
Please find here after my results of the echo $PATH command :
/Users/laurentkrxxef/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
(I just put some xx for anonymity purpose)

Your understanding and advice will be much appreciated.

Best regards. Laurent

@dskrief
Copy link
Author

dskrief commented Jun 25, 2018

Dear Rebecca, I succeeded in downloading with your indication : I added the path before the command ~/.local/bin/kaggle competitions download -c ....

And it works fine.
Thank you again.
Best regards. Laurent

@ghost
Copy link

ghost commented Jun 25, 2018

If you add ~/.local/bin to your path you shouldn't need to specify the full path to the binary. It looks like you're on a mac? I don't know precisely the process for that but you can google it.

@ghost ghost closed this as completed Jun 25, 2018
@RonakDedhiya
Copy link

Dear Rebecca, I succeeded in downloading with your indication : I added the path before the command ~/.local/bin/kaggle competitions download -c ....

And it works fine.
Thank you again.
Best regards. Laurent

This worked for me

@devanshuDesai
Copy link

devanshuDesai commented Nov 19, 2018

Adding to what @dskrief said, you could permanently fix it by adding this line to your .bashrc or .zshrc:
alias kaggle="~/.local/bin/kaggle"
Save it, exit you RC file and run:
bash or zsh in your terminal based on your file system and the command should be working fine.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants