【问题标题】:Prophet fails to install in PythonProphet 无法在 Python 中安装
【发布时间】:2021-03-28 09:55:20
【问题描述】:

我一直在尝试通过

安装先知
pip install pystan
pip install prophet

但我不断收到错误。然后,我尝试使用 conda 安装先知:

conda install -c conda-forge prophet

但我不断收到错误,例如,

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from current channels:

  - prophet

Current channels:

  - https://conda.anaconda.org/conda-forge/win-64
  - https://conda.anaconda.org/conda-forge/noarch
  - https://repo.anaconda.com/pkgs/main/win-64
  - https://repo.anaconda.com/pkgs/main/noarch
  - https://repo.anaconda.com/pkgs/r/win-64
  - https://repo.anaconda.com/pkgs/r/noarch
  - https://repo.anaconda.com/pkgs/msys2/win-64
  - https://repo.anaconda.com/pkgs/msys2/noarch

我能做些什么来解决这个问题?

【问题讨论】:

  • 您没有提供错误信息。 我不断收到错误并没有告诉我们出了什么问题,所以我们无法建议如何解决它。所以我不得不猜测。如果您尝试在 Windows 机器上安装 pystan,则其中一条错误消息将问题报告为:WARNING:pystan:MSVC compiler is not supported. pystan 文档确认了这一点,表示它不能在 Windows 上运行。

标签: python conda facebook-prophet


【解决方案1】:

更新: Conda 安装现在应该可以工作了。 prophet 包现在有 a feedstock on Conda Forge


Prophet 包是 in the midst of transitioning,从 Python 中的名称 fbprophet 到 OP 在文档中报告的名称,简称为 prophet。虽然这已经在文档中进行了更新,并且已经推送了 PyPI 版本,但在 conda-forge/staged-recipes 存储库(其中 the prophet package was awaiting review)上存在积压的审查请求。

在此期间,应该继续使用the previous documentation的指令,即

conda install -c conda-forge fbprophet

并通过名称fbprophet 引用模块。

【讨论】:

猜你喜欢
  • 2017-09-05
  • 2011-03-30
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-10-28
  • 2017-08-06
  • 2020-03-27
  • 2018-03-26
相关资源
最近更新 更多