Option 1
conda install -n [NameOfVEnv] -c conda-forge fbprophet
Where -c https://docs.conda.io/projects/conda/en/latest/commands/install.html#Channel%20Customization代表“通道”,即
Navigator 和 conda 查找包的位置。 (Source https://docs.anaconda.com/anaconda/navigator/tutorials/manage-channels/)
and -n https://docs.conda.io/projects/conda/en/latest/commands/install.html#Target%20Environment%20Specification对于“环境名称”。
我刚刚在这里尝试过(在 CentOS 7 上),效果很好。
Option 2
另一种选择,如果有人正在使用Windows 10
, 是访问Anaconda Prompt
对于您正在使用的环境作为管理员:
And run
conda install -c conda-forge fbprophet
我刚刚在这里尝试过(在 Windows 10 64 位上),效果很好。
Option 3
Prophet位于PyPI上,因此您可以使用pip来安装它(Source https://facebook.github.io/prophet/docs/installation.html#installation-in-python)
# bash
# Install pystan with pip before using pip to install fbprophet
$ pip install pystan
$
$ pip install fbprophet
您可能需要安装依赖项(在两个选项中),但它会在提示窗口中询问您。如果出现,您需要输入Y
.