0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[備忘録]PythonプログラムでHugging faceへのログイン処理に失敗する

Last updated at Posted at 2024-12-24

症状

notebook形式で次のコードを実行すると、hugging faceにログインすることができます。

hugging face にログインする
from huggingface_hub import notebook_login

notebook_login()

しかし、私の場合は次のエラーが出力されてログインに失敗しました。

[WinError 2] 指定されたファイルが見つかりません。

解決策

Git Bash をインストールすることで解決されます。

Git Bash のインストール後、再起動して再びログインを試すと、次が出力されます。

成功例
Token is valid (permission: write).
Your token has been saved in your configured git credential helpers (manager).
Your token has been saved to C:\Users\ユーザ名\.cache\huggingface\token
Login successful
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?