# Huggingface-cli login

**URL:** <https://discuss.huggingface.co/t/huggingface-cli-login/25567>\
**Category:** Beginners\
**Created:** [November 5, 2022, 12:07am UTC](https://discuss.huggingface.co/t/huggingface-cli-login/25567 "2022-11-05T00:07:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josabooba](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@Josabooba](https://discuss.huggingface.co/u/Josabooba)\
**Post date:** [November 5, 2022, 12:07am UTC](https://discuss.huggingface.co/t/huggingface-cli-login/25567/1 "2022-11-05T00:07:32Z")

</div>

Hi… I see a few other huggingface login threads but they don’t help unfortunately. Mostly the threads advise the token input appears blank. I realise right clicking actually pastes and I’ve tried this manually and edited in users.py file.

I have installed Release Version: Python 3.10.6

Both attempts give the same result. I have also tried as suggested installing Git-2.38.1-64-bit (Git for Windows).

CMD as Admin, using **activate** and **huggingface-cli login** , as follows:  
`(myAMD_venv) C:\Users\me\myPython\myStable Diffusion\myAMD_venv\Scripts>huggingface-cli login`

outputs this error info…

```auto
Traceback (most recent call last):
  File "C:\Users\me\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\me\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\me\myPython\myStable Diffusion\myAMD_venv\Scripts\huggingface-cli.exe\ __main__.py", line 7, in <module>
  File "C:\Users\me\myPython\myStable Diffusion\myAMD_venv\lib\site-packages\huggingface_hub\commands\huggingface_cli.py", line 45, in main
    service.run()
  File "C:\Users\me\myPython\myStable Diffusion\myAMD_venv\lib\site-packages\huggingface_hub\commands\user.py", line 149, in run
    _login(self._api, token=token)
  File "C:\Users\me\myPython\myStable Diffusion\myAMD_venv\lib\site-packages\huggingface_hub\commands\user.py", line 320, in _login
    hf_api.set_access_token(token)
  File "C:\Users\me\myPython\myStable Diffusion\myAMD_venv\lib\site-packages\huggingface_hub\hf_api.py", line 719, in set_access_token
    write_to_credential_store(USERNAME_PLACEHOLDER, access_token)
  File "C:\Users\me\myPython\myStable Diffusion\myAMD_venv\lib\site-packages\huggingface_hub\hf_api.py", line 588, in write_to_credential_store
    with subprocess.Popen(
  File "C:\Users\me\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\me\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1438, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

```

I am following a youtube Stable Defusion AMD install ([Run Stable Diffusion With AMD GPU (RX580) On Windows - YouTube](https://www.youtube.com/watch?v=Lk2syPsVMQM)) and while many appear to have successfully followed the tutorial with success - I see several others run into trouble exactly where I have at **huggingface-cli login**.

I would be grateful if some advice could help me progress… thanks

---

<div class="post-metadata">

**Author:** ![Josabooba](https://avatars.discourse-cdn.com/v4/letter/j/df705f/32.png) [@Josabooba](https://discuss.huggingface.co/u/Josabooba)\
**Post date:** [November 5, 2022, 1:14am UTC](https://discuss.huggingface.co/t/huggingface-cli-login/25567/2 "2022-11-05T01:14:06Z")

</div>

I seem to have made progress to **login** and I think the issue was something not explained in the video.

On huggingface homepage, on the right - **Trending** , I had to click

**CompVis/stable-diffusion-v1-4**

If you can’t see it, use the search… and scroll down to _Agree & Access Repository_

This didn’t immediately work, but after I restarted my computer and re- **activate** d and ran the **login** it has worked and logged me in with my token coded into the user.py file.
