Cannot download Kaggle competition


I am using the official Kaggle package and the command that I copy paste from Kaggle website, however I cannot download the competition files:

(fastai) atr@fastai-instance-1:~/data$ kaggle competitions download -c yelp-restaurant-photo-classification
-bash: /home/atr/.local/bin/kaggle: No such file or directory

Any idea?

edit: I have no idea what happened but today it worked. I have not changed anything.