[Python] pip dependency conflict requires same version of package

Discussão em 'Python' iniciado por Stack, Junho 4, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to install fairseq and I had to modify the setup.py file to resolve a dependency conflict. However I still get a conflict error that I can't understand, as it seems that the conflicting packages require the same version of omegaconf. Here is the console output :


    The conflict is caused by:
    fairseq 0.12.2 depends on omegaconf<2.1
    hydra-core 1.0.7 depends on omegaconf<2.1 and >=2.0.5

    To fix this you could try to:
    1. loosen the range of package versions you've specified
    2. remove package versions to allow pip to attempt to solve the dependency conflict


    Here are the modified requirements in setup.py :

    install_requires=[
    "cffi",
    "cython",
    "hydra-core==1.0.7",
    "omegaconf<2.1",
    "numpy>=1.21.3",
    "regex",
    "sacrebleu>=1.4.12",
    "torch>=1.13",
    "tqdm",
    "bitarray",
    "torchaudio>=0.8.0",
    "scikit-learn",
    "packaging",
    ]

    Continue reading...

Compartilhe esta Página