[Python] ERROR: Could not build wheels for fairseq, which is required to install...

Discussão em 'Python' iniciado por Stack, Julho 22, 2025.

  1. Stack

    Stack Membro Participativo

    pip install fairseq

    copying fairseq\examples\discriminative_reranking_nmt\criterions\discriminative_reranking_criterion.py -> build\lib.win-amd64-cpython-311\fairseq\examples\discriminative_reranking_nmt\criterions
    error: could not create 'build\lib.win-amd64-cpython-311\fairseq\examples\discriminative_reranking_nmt\criterions\discriminative_reranking_criterion.py': No such file or directory
    [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for fairseq
    Building wheel for antlr4-python3-runtime (setup.py) ... done
    Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.8-py3-none-any.whl size=141257 sha256=
    Stored in directory: C:\Users\MHamz\OneDrive\Documents\MobaXterm\slash\mhamz_hamza\var\log\xwin\pip-ephem-wheel-cache-ldqp4e9q\wheels\21\10\be\
    Successfully built antlr4-python3-runtime
    Failed to build fairseq
    ERROR: Could not build wheels for fairseq, which is required to install pyproject.toml-based projects

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for fairseq
    Failed to build fairseq
    ERROR: Could not build wheels for fairseq, which is required to install pyproject.toml-based projects


    python version 3.11.5

    Continue reading...

Compartilhe esta Página