Hugging face client not working

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?

1 Like

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.