安装fbprophet遇见“ERROR: Failed building wheel for fbprophet”报错

问题描述

按照网上教程安装fbprophet出现报错

Building wheel for fbprophet (setup.py) ... error
  ERROR: Command errored out with exit status 1:

	··· ···

  TypeError: This is a python-holidays entity loader class. For entity inheritance purposes please import a class you want to derive from directly: e.g., `from holidays.countries import Entity` or `from holidays.financial import Entity`.
  ----------------------------------------
  ERROR: Failed building wheel for fbprophet

以为是pystan的问题,pip install pystanconda install pystan都尝试了,也尝试了多种安装fbprophet的方式,pip install fbprophetconda install fbprophetconda install -c conda-forge fbprophet,都不行。

解决方法

查看官网,https://facebook.github.io/prophet/docs/installation.html#installation-in-python,发现现在包叫prophet了

From v0.6 onwards, Python 2 is no longer supported.
As of v1.0, the package name on PyPI is “prophet”; prior to v1.0 it was “fbprophet”.
As of v1.1, the minimum supported Python version is 3.7.

安装命令,任选一个

python -m pip install prophet
conda install -c conda-forge prophet
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值