Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

subprocess.run(["huggingface-cli", "login", "--token", TOKEN]) works on mac but not on Ubuntu

I am tring to run subprocess.run(["huggingface-cli", "login", "--token", TOKEN]) in a Jupyter notebook, which works on Mac but gets the following error on Ubuntu. I checked that pip install huggingface_hub has been executed.

subprocess.run(["git", "lfs", "install"]) works.

!huggingface-cli login in the jupyter cell gets the error /bin/bash: huggingface-cli: command not found

Anyone can help?

like image 634
dami.max Avatar asked Oct 19 '25 00:10

dami.max


1 Answers

jupyter or colab

!huggingface-cli login --token hf_KjwGsxQLURmKdftszadObzCcRXaeTC

like image 114
Daniel munoz bedoya Avatar answered Oct 21 '25 13:10

Daniel munoz bedoya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!