Skip to content

'hf' is not recognized as an internal or external command #3296

Description

@qianyun210603

Describe the bug

I installed huggingface_hub 0.34.3 via conda and try hf download but it compains hf is not is not recognized as an internal or external command.

(default) D:\Documents>hf
'hf' is not recognized as an internal or external command,
operable program or batch file.

I also tried old huggingface-cli command, it gets recognized but printed a warning to ask me use hf.

(default) D:\Documents>huggingface-cli
⚠️  Warning: huggingface-cli is deprecated. Use hf instead.
usage: huggingface-cli <command> [<args>]

positional arguments:
  {download,upload,repo-files,env,login,whoami,logout,auth,repo,lfs-enable-largefiles,lfs-multipart-upload,scan-cache,delete-cache,tag,version,upload-large-folder}
                        huggingface-cli command helpers
    download            Download files from the Hub
    upload              Upload a file or a folder to a repo on the Hub
    repo-files          Manage files in a repo on the Hub
    env                 Print information about the environment.
    login               Log in using a token from huggingface.co/settings/tokens
    whoami              Find out which huggingface.co account you are logged in as.
    logout              Log out
    auth                Other authentication related commands
    repo                {create} Commands to interact with your huggingface.co repos.
    lfs-enable-largefiles
                        Configure your repository to enable upload of files > 5GB.
    scan-cache          Scan cache directory.
    delete-cache        Delete revisions from the cache directory.
    tag                 (create, list, delete) tags for a repo in the hub
    version             Print information about the huggingface-cli version.
    upload-large-folder
                        Upload a large folder to a repo on the Hub

options:
  -h, --help            show this help message and exit

Reproduction

Just install via conda and then type hf in CMD prompt.

Logs

System info

(This is actually output from `huggingface-cli env` as `hf` is not recognized.
- huggingface_hub version: 0.34.3
- Platform: Windows-11-10.0.26100-SP0
- Python version: 3.12.9
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: F:\huggingface\token
- Has saved token ?: False
- Configured git credential helpers: manager
- FastAI: N/A
- Tensorflow: N/A
- Torch: 2.8.0+cu129
- Jinja2: 3.1.6
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: 11.3.0
- hf_transfer: N/A
- gradio: N/A
- tensorboard: 2.6.2.2
- numpy: 2.2.6
- pydantic: N/A
- aiohttp: 3.12.15
- hf_xet: 1.1.5
- ENDPOINT: https://hf-mirror.com
- HF_HUB_CACHE: F:\huggingface\hub
- HF_ASSETS_CACHE: F:\huggingface\assets
- HF_TOKEN_PATH: F:\huggingface\token
- HF_STORED_TOKENS_PATH: F:\huggingface\stored_tokens
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions