huggingface / huggingface/hf-agents

Windows support in the future?

Open
#6 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
436
Forks
26
PR merge metrics
No merged PRs in 30d

Description

When trying to install on Windows using `hf extensions install hf-agents`:

```
PS C:\Users\Ismael> hf extensions install hf-agents
Binary not found, trying to install as Python extension...
Virtual environment created in C:\Users\Ismael\.local\share\hf\extensions\hf-agents\venv
Installing package from https://github.com/huggingface/hf-agents/archive/refs/heads/main.zipCollecting https://github.com/huggingface/hf-agents/archive/refs/heads/main.zip
Downloading https://github.com/huggingface/hf-agents/archive/refs/heads/main.zip
- 12.1 kB ? 0:00:00
ERROR: https://github.com/huggingface/hf-agents/archive/refs/heads/main.zip does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
Error: Traceback (most recent call last):
File "F:\ai\huggingface\cli\venv\Lib\site-packages\huggingface_hub\cli\extensions.py", line 358, in _install_python_extension
subprocess.run(
~~~~~~~~~~~~~~^
[
^
...<9 lines>...
timeout=_EXTENSIONS_PIP_INSTALL_TIMEOUT,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Python313\Lib\subprocess.py", line 577, in run
raise CalledProcessError(retcode, process.args,
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['C:\\Users\\Ismael\\.local\\share\\hf\\extensions\\hf-agents\\venv\\Scripts\\python.exe', '-m', 'pip', 'install', '--disable-pip-version-check', '--no-input', 'https://github.com/huggingface/hf-agents/archive/refs/heads/main.zip']' returned non-zero exit status 1.

Failed to install pip package from 'huggingface/hf-agents' (exit code 1). See pip output above for details.
Set HF_DEBUG=1 as environment variable for full traceback.
```

In WSL it does work but my RX 6800 does not appear there :( and RAM is limited as it's a VM basically.

```
ismael@GAMINGPC:/mnt/c/Users/Ismael$ hf agents fit system
A new version of hf-agents is available: 0.1.0 (current: 0.2.0)
Update with: hf extensions install hf-agents

=== System Specifications ===
CPU: AMD Ryzen 5 5600X 6-Core Processor (12 cores)
Total RAM: 7.73 GB
Available RAM: 4.08 GB
Backend: CPU (x86)
GPU: Not detected

ismael@GAMINGPC:/mnt/c/Users/Ismael$
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `hf extensions install hf-agents` on Windows and inspect the `_install_python_extension` path shown in the traceback. Compare that with the working WSL invocation, `hf agents fit system`; done means the extension installs on Windows and the reported system capabilities match the available environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, shell
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.