Comments (26)
Reinstall works for me:
$ kaggle
"kaggle": command not found
$ python3 -m pip uninstall kaggle
and then
$ python3 -m pip install kaggle
$ kaggle
usage: kaggle [-h] [-v] {competitions,c,datasets,d,kernels,k,config} ...
from kaggle-api.
I just installed kaggle using python 3 and it works: pip3 install kaggle
from kaggle-api.
I've just restarted my ubuntu machine and it worked.
from kaggle-api.
Reinstall works for me:
$ kaggle "kaggle": command not found $ python3 -m pip uninstall kaggleand then
$ python3 -m pip install kaggle $ kaggle usage: kaggle [-h] [-v] {competitions,c,datasets,d,kernels,k,config} ...This worked for me. Thank a lot.
This worked for me as well. I installed using this command and then added updated PATH as:
export PATH=/home/maria/.local/bin${PATH:+:${PATH}}
Then copied the Kaggle.json file to the required location as:
cp kaggle.json /home/maria/.kaggle
from kaggle-api.
@rysteboe I did check the binaries but was not entirely sure if that was the issue. I looked at @nikhiljay's comment and found that python3 was not installed on my computer. I downloaded python3 and installed kaggle with python3 -m pip install kaggle
(pip3
was not a recognized command).
In any case, kaggle is working now. If you are planning on improving the installation instructions, it might help to specify installation with python3.
from kaggle-api.
Reinstall works for me:
$ kaggle
"kaggle": command not found
$ python3 -m pip uninstall kaggle
and then
$ python3 -m pip install kaggle
$ kaggle
usage: kaggle [-h] [-v] {competitions,c,datasets,d,kernels,k,config} ...
This worked for me. Thank a lot.
from kaggle-api.
Somehow pip install --user kaggle
worked.
I don't know how.
And so pip show kaggle
worked too.
May be it could be included in the 'readme'!
-_-
from kaggle-api.
try : sudo pip install kaggle
from kaggle-api.
You need for python's binary directory to be on your path. For a pip install kaggle --user
on Linux, this is ~/.local/bin
. On Windows, it's something like {python-root}/bin
. You can find the exact path by doing pip uninstall kaggle
and looking for the executable in the list of files that it says it would remove.
from kaggle-api.
Which version was installed? You may need to restart your terminal session.
from kaggle-api.
I did it yesterday. That must be latest. I restarted the everything. Still doesn't.
from kaggle-api.
I suspect that the binary is not on your path. Can you please echo $PATH
and paste the results?
from kaggle-api.
My echo $PATH
:
/home/mangal/bin:/home/mangal/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
On ls ~/.local/bin
:
easy_install f2py markdown_py pip3 saved_model_cli toco wheel
easy_install-3.5 freeze_graph pip pip3.5 tensorboard toco_from_protos
So it does seem like that the binary is still not there!
But when I did pip uninstall kaggle
, strange enough :
Skipping kaggle as it is not installed.
This creates suspicion but when I do pip install kaggle
, it doesn't appear as if anything went wrong.
Could it something wrong with pip?
¯_(ツ)_/¯
from kaggle-api.
Hmm, that's really weird. Do a whereis kaggle
just to confirm that it's not being installed elsewhere - I don't remember where python drops system binaries. If that turns up nothing, try pip install --user kaggle
. That will only install it for your user. I'm skeptical about that working, though. You can also try pip show kaggle
, but if it's not detecting it for removal, then that probably won't work either.
from kaggle-api.
I would also check /etc/pip.conf
, $HOME/$XDG_CONFIG_HOME/pip/pip.conf
(defaults to ~/.config/pip/pip.conf
), and $HOME/.pip/pip.conf
to see if there's anything weird there.
from kaggle-api.
Yeah, I have a to do item to improve the installation instructions, since you're not the first one to have that problem.
from kaggle-api.
@rysteboe I also used pip install --user kaggle
and was able to get pip show kaggle
to work. However, the terminal still tells me kaggle: command not found
. Also whereis kaggle
returns nothing, which is kinda weird.
Do you have any idea why this might be? I'm fairly new to pip, but I think that if it is installed I should have the command available.
from kaggle-api.
Did you do the following?
You need for python's binary directory to be on your path. For a pip install kaggle --user on Linux, this is ~/.local/bin. On Windows, it's something like {python-root}/bin. You can find the exact path by doing pip uninstall kaggle and looking for the executable in the list of files that it says it would remove.
from kaggle-api.
It's not, strictly speaking, a python2 problem. python2 is all I have installed on my laptop and it works. Honestly, the API has been tested much less with 3 than with 2. I still strongly suspect that the problem was with your path, but I'm glad that the problem was resolved either way.
from kaggle-api.
downloading kaggle API second time and keeping at ~/.kaggle/ worked for me
from kaggle-api.
Still getting the same error, after installing with pip3
from kaggle-api.
Reinstall works for me:
$ kaggle "kaggle": command not found $ python3 -m pip uninstall kaggleand then
$ python3 -m pip install kaggle $ kaggle usage: kaggle [-h] [-v] {competitions,c,datasets,d,kernels,k,config} ...
This worked for me. Thank a lot.
from kaggle-api.
I just installed kaggle using python 3 and it works:
pip3 install kaggle
After trying many other solutions this is the one that worked for me as well. I am running Windows 10 version 1909 and using jupyter notebooks and Python 3.7. also I installed directly into my anaconda environment.
from kaggle-api.
The following solution works for me:
- sudo pip install kaggle
- I go to download kaggle account on website of Kaggle to get API in format of "kaggle.json"
- I move "kaggle.json" to /home/"user_name"/.kaggle
from kaggle-api.
pip install --user kaggle
Yep that works.
Of course you need to do :
export PATH=/home/your_user/.local/bin
from kaggle-api.
Reinstall works for me:
$ kaggle "kaggle": command not found $ python3 -m pip uninstall kaggleand then
$ python3 -m pip install kaggle $ kaggle usage: kaggle [-h] [-v] {competitions,c,datasets,d,kernels,k,config} ...
Worked for me on powershell. Spent 90+ mins on this and didn't realize it's specifically */scripts/ that needs to be on path. Great success.
from kaggle-api.
Related Issues (20)
- Dataset HOT 4
- listing model instances doesn't return previous versions HOT 3
- OLAP integration for scalable analytics HOT 1
- Please add posibility to enable GPU T4 x 2 in API HOT 4
- Listing datasets allows 0 for `page` query parameter HOT 1
- Please add new needful features HOT 2
- Rebooting kaggle notebook instance with minimal number of packages HOT 3
- install-deps script is missing several dependencies
- The downloaded .log file is empty when using API command HOT 1
- Unenable to use SadTalker Gradio WebUI on Kaggle HOT 1
- Consider replacing hatch with pixi HOT 1
- IndexError: tuple index out of range
- IndexError: tuple index out of range (improve error message) HOT 1
- there is no directory that matches the name of your project (kaggle) HOT 10
- competition_list_files returns empty file list HOT 4
- OSError: Could not find kaggle.json. HOT 6
- Bad zip file? HOT 2
- Cannot submit with API to a late submission competition HOT 3
- cannot download leaderboard HOT 2
- Medium
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kaggle-api.