# Hugging face client not working

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhugging-face-client-not-working%2F116917%3E%5C
**Category:** Beginners\
**Created:** [November 10, 2024, 10:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhugging-face-client-not-working%2F116917 "2024-11-10T22:21:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crazyymonke](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/crazyymonke/32/34317_2.png) [@crazyymonke](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcrazyymonke)%5C
**Post date:** [November 10, 2024, 10:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhugging-face-client-not-working%2F116917%2F1 "2024-11-10T22:21:59Z")

</div>

I’m not good at python and I’m trying to download something that requires it and needs hugging face. I downloaded it and tried doing huggingface-cli login but all I got was this: `'huggingface-cli' is not recognized as an internal or external command, operable program or batch file.` I tried re-installing it but that didn’t work. I searched this up and saw people had the same problem. Somebody said to input `python3 -m pip install -U`, `"huggingface_hub[cli]"` or `python3 -m pip install [package_name]` That didn’t work and in that same comment it also said to use a virtual environment if it didn’t work. So I tried setting up an environment in my project directory and following along to the “Installation” guide on the hugging face website. The first line that is `python -m venv .env` worked but the second one for Windows, `.env/Scripts/activate` gives me: `'.env' is not recognized as an internal or external command, operable program or batch file.` I have notepad++ installed, vim installed, git installed and is set up to be on notepad++, and I’m running Python 3.12.7. Does anybody have any tips to fix this?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [November 11, 2024, 3:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhugging-face-client-not-working%2F116917%2F2 "2024-11-11T03:40:50Z")

</div>

Installing a programming environment is a lot of work…  
Since it’s a Windows environment, I think the Python PATH is probably not set up correctly, based on the error message.

> **[How to Add Python to PATH – Real Python](https://realpython.com/add-python-to-path/)**
>
> In this tutorial, you'll learn about how to add Python, or any other program, to your PATH environment variable. You'll be covering the procedure in Windows, macOS, and Linux and find out what PATH is and why it's important.

> <https://github.com/huggingface/huggingface_hub/issues/1079>
>
> \### Describe the bug
> 
> after install huggingface\_hub with pip, the huggingface\_cl…i command not found
> 
> 
> \### Reproduction
> 
> \_No response\_
> 
> \### Logs
> 
> \_No response\_
> 
> \### System Info
> 
> \`\`\`shell
> os: MAC OS 11.6.8
> \`\`\`
