How to execute Kaggle Api commands on windows system?
Asked Answered
D

2

6

I'm referring to https://github.com/Kaggle/kaggle-api

I tried executing the sample commands listed on the page in windows CMD and Python's IDLE. Not sure where it should be executed or how can I go to Kaggle CLI?

Eg. command: kaggle datasets list -s demographics

Windows CMD says: 'kaggle' is not recognized as an internal or external command, operable program or batch file.

Denticle answered 26/4, 2019 at 4:5 Comment(0)
G
1

Assuming the Kaggle API has been successfully installed using pip and the python install location along with the location of the Scripts\ folder have been added into the PATH; the execution of kaggle directly within Windows command prompt (CMD) should be able.

In order to ensure Python and the folder Scripts\ have been added into the PATH execute the command WHERE python3 succeeding WHERE kaggle.

If any of the two commands above produce an equivalent output of INFO: Could not find files for the given pattern(s) manually modify the PATH using the directions in Excursus: Setting environment variables to add both python install location and location of the Scripts\ folder.

Goldplate answered 26/4, 2019 at 4:52 Comment(0)
C
0

You can run Bash commands on Windows using the Bash shell, which is a little tricky to launch the first time. You can find instructions on how to do that here: https://www.windowscentral.com/how-install-bash-shell-command-line-windows-10

Hope that helps! :)

Chrystalchryste answered 26/4, 2019 at 18:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.