오류 메시지

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
cudf-cu12 24.4.1 requires pyarrow<15.0.0a0,>=14.0.1, but you have pyarrow 17.0.0 which is incompatible.
ibis-framework 8.0.0 requires pyarrow<16,>=2, but you have pyarrow 17.0.0 which is incompatible.
  • 원인: pip가 패키지를 설치하는 과정에서 의존성 충돌(dependency conflict)이 발생했기 때문임
  • 세부 내용: 이미 설치된 패키지들이 서로 다른 버전의 pyarrow 라이브러리를 요구하고 있어 충돌이 발생함
    • cudf-cu12: pyarrow 14.0.1 이상 15.0.0 미만의 버전 요구함
    • ibis-framework: pyarrow 2.0 이상 16.0 미만의 버전 요구함
    • 현재 설치된 pyarrow: pyarrow 17.0.0의 버전이 설치되어 있음

Solution

  1. pip 업그레이드하기
    일반적인 경우 pip를 최신 버전으로 업그레이드하고 다시 시도해본다.
    !pip install --upgrade pip
    

    Colab 환경에서 오류가 발생했어서, !를 붙임

  2. 패키지가 요구하는 버전 설치하기
    세부 내용의 원인을 직접적으로 해결하고 싶거나, 1. 단계를 해도 해결이 안 되는 경우 오류 메시지에서 명시한 세부 내용을 확인한 후 해당되는 버전을 다운로드한다.
    ex) pyarrow 버전 다운그레이드: 두 패키지가 요구하는 버전 범위 안에서 호환되는 pyarrow 버전을 설치한다.
     !pip install pyarrow==14.0.1
    

Reference

댓글남기기