[Python] fbprophet install 실패 문제

신은지·2024년 11월 10일
0

Python

목록 보기
20/23
post-thumbnail

Trouble Shooting


👻 fbprophet install 실패

Error Message


╰─ conda install -c conda-forge fbprophet
Channels:
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: | warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package fbprophet-0.2-py27_vc9_0 requires python 2.7*, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ fbprophet is installable with the potential options
│  ├─ fbprophet [0.1.1|0.2|0.2.1|0.3.post2] would require
│  │  └─ python [3.5* |>=3.5,<3.6.0a0 ], which can be installed;
│  ├─ fbprophet [0.1.1|0.2|0.2.1] would require
│  │  └─ python 3.6* , which can be installed;
│  ├─ fbprophet [0.2|0.2.1|0.3.post2] would require
│  │  └─ python [2.7* |>=2.7,<2.8.0a0 ], which can be installed;
│  ├─ fbprophet [0.3.post2|0.4.post2|0.5|0.6|0.7.1] would require
│  │  └─ python >=3.6,<3.7.0a0 , which can be installed;
│  ├─ fbprophet [0.5|0.6|0.7.1] would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  └─ fbprophet 0.7.1 would require
│     └─ python >=3.8,<3.9.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.12.* , which conflicts with any installable versions previously reported.

Solve


설치한 python version이 fbprophet에서 지원하지 않는 version으로 추정되어 python version을 먼저 확인해 보았다.

╰─ python --version
Python 3.12.4
(base)

에러 메시지로 추측해보았을 때 최대 3.8 ~ 3.9 version까지 호환되는 것으로 추정되고, 🔗Prophet 공식 GitHub를 통해 fbprophet은 prophet으로 개명되었다는 것을 알게 되었다.

그러므로 해결할 수 있는 방법은 2가지라고 생각했다.

  1. python version 하향 & fbpropht 설치
  2. python version 유지 & prophet 설치

python version을 하향시킬 경우 이미 설치된 다른 Library와 충돌할 수 있는 가능성이 있으므로 python version을 유지하고 prophet을 설치하는 방향으로 진행하였다.

conda prompt에서 진행한 command는 다음과 같다.

conda activate 환경이름		# 가상환경 이름
python --version	# ver 확인
conda install -c conda-forge prophet
pip install prophet
ipython		# prompt에서 python을 실행하여 설치가 제대로 되었는지 확인
from prophet import Prophet		# 실패 메시지가 안 뜬다면 성공

🚧 만약 from prophet import Prophet 입력 후 Importing plotly failed. Interactive plots will not work.라는 실패 메시지가 발생한다면 from prophet import Prophet을 한 번 더 입력하면 해결 된다.

profile
I believe there is no best, only better

0개의 댓글