본문 바로가기
개발/Python

[Python] pip install 종속성 오류 해결 명렁어

by 보안매크로 2025. 1. 5.
728x90

Collecting gruut>=2.4.0 (from gruut[de,es,fr]>=2.4.0->coqui-tts==0.24.2->coqui-tts[languages]==0.24.2->-r requirements.txt (line 5))
  Using cached gruut-2.4.0.tar.gz (85 kB)
  Preparing metadata (setup.py) ... done
Collecting einops>=0.6.0 (from coqui-tts==0.24.2->coqui-tts[languages]==0.24.2->-r requirements.txt (line 5))
  Using cached einops-0.8.0-py3-none-any.whl.metadata (12 kB)
INFO: pip is looking at multiple versions of coqui-tts to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install coqui-tts and transformers==4.36.2 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested transformers==4.36.2
    coqui-tts 0.24.2 depends on transformers<4.43.0 and >=4.42.0

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

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

 

pip install --upgrade --no-deps --force-reinstall -r requirements.txt

이걸로 쉽게 해결됨!

728x90