Contribute to Transformers on windows natively without WSL
Author: ghost
Pull request: no
Labels: name: bug

### System Info

### System info
OS: Windows 11
Python: 3.13.3 and 3.10
Git: 2.49.0
CMake: 4.0.2
Msys64:  Pacman v6.1.0 - libalpm v14.0.0
Pip: 25.1.1 
Setuptools: 80.9.0
Visual studio C++ build tools

### NOTE: I followed the steps here [Contribute to 🤗 Transformers](https://huggingface.co/docs/transformers/en/contributing) and for sure system info already existed before following but let me walk through again for additional info.
1- Forked the repo.
2- Cloned it
3- cd transformers (so made sure I am in the right path which is the root for the repo)
3- switched to my own branch
4- made a python virtual environment using python 3.10 then activated it 
5- made sure transformers ain't installed inside it
6- installed PyTorch
7- Ran this command `pip install -e ".[dev]"`


### NOTE: I tried making requirements.txt and using this command `pip install -r requirements.txt` but I got no output and I tried installing onnx with pip which happened successfully then Ran this command `pip install -e ".[dev]"` but nothing changed

### NOTE 6/6/2025: I tried uv instead of python venv, nothing worked. I tried deleting everything including system info and install everything from the beginning, nothing worked still. I made a requiremets.txt from what is in setup.py and installed it and tried to run `pip install -e ".[dev]"` but same issues again, nothing worked

```
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [11 lines of output]
      ...\setup.py:36: DeprecationWarning: Use shutil.which instead of find_executable
        CMAKE = find_executable('cmake3') or find_executable('cmake')
      ...\setup.py:37: DeprecationWarning: Use shutil.which instead of find_executable
        MAKE = find_executable('make')
      fatal: not a git repository (or any of the parent directories): .git
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 35, in <module>
        File "...\setup.py", line 318, in <module>
          raise FileNotFoundError("Unable to find " + requirements_file)
      FileNotFoundError: Unable to find requirements.txt
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
```

### Who can help?

_No response_

### Information

- [x] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

`pip install -e ".[dev]"`

### Expected behavior

Being able to install transformers for contributing with no issue

Comments:
Related?:
Similar error (not similar issue): https://github.com/autogluon/autogluon/issues/4620
Similar issue (not similar error): https://discuss.huggingface.co/t/transformers-repo-install-error/158047 to https://huggingface.co/spaces/transformers-community/support/discussions/12

Hi @MuhammadEssameldeen, can you post this one on the community support space? Someone from the community or one of the Hugging Face engineers should be able to help there: https://huggingface.co/spaces/transformers-community/support

did you try this 

![Image](https://github.com/user-attachments/assets/fc096eeb-b2f1-4fb1-a023-f68550a183b2)

WFM.

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.