11

我的构建在 Windows 10 上一直失败,无法在 anaconda 中安装 fbprophet,并显示以下消息:

ERROR conda.core.link:_execute(502): An error occurred while installing package 'conda-forge::automat-0.7.0-py_1'.
CondaError: Cannot link a source that does not exist. C:\Users\bharat.c.ruparel\AppData\Local\Continuum\anaconda3\Scripts\conda.exe

给出的命令是:

conda install -c conda-forge fbprophet

有人在 Windows 10 上成功安装了 fbprophet 吗?如果是,那么请给出步骤。

谢谢。我也尝试了 pip install 但没有运气。我有一台 Mac 并设法在其上安装 fbprophet,没有任何问题。

4

8 回答 8

15
  1. 首先在您的 Windows 机器中安装 Anaconda 或 miniconda,并将 conda python 路径添加到 env 变量作为默认 python。

  2. 打开命令提示符并运行以下命令。

  3. 创建 conda 虚拟环境(可选)

    conda create -n v-env python=3.7
    
    activate v-env
    
  4. 安装 c++ 编译器

    conda install libpython m2w64-toolchain -c msys2
    

    libpython 将自动distutils.cfg为您创建和设置文件PYTHONPATH\Lib\distutils,但如果失败,请使用以下说明手动设置

    [可选的]

    使用distutils.cfg文本编辑器(例如记事本、记事本++)创建并将以下行添加到该文件中。

    [build]
    compiler=mingw32
    
  5. 安装依赖项

    conda install numpy cython -c conda-forge
    
    conda install matplotlib scipy pandas -c conda-forge
    
  6. 安装 PyStan

    pip install pystan
    
    or 
    
    conda install pystan -c conda-forge
    
  7. 安装 Ephem

    conda install -c anaconda ephem
    
  8. 安装 fbprophet

    pip install fbprophet
    
    or 
    
    conda install -c conda-forge fbprophet
    
于 2018-12-31T04:18:36.273 回答
9

我还面临在没有 conda 的 Windows 10 中安装 facebook 先知问题。但是,我们可以解决它。首先,卸载任何pystan,fbprophet。然后按照以下步骤,

python.exe -m pip install pystan==2.17.1.0
python.exe -m pip install fbprophet==0.6   
python.exe -m pip install --upgrade fbprophet

谢谢,tsj

于 2020-09-25T18:06:55.097 回答
7

我有同样的问题。但是在我按照以下步骤操作后它可以工作:

提示安装 Ephem:

conda install -c anaconda ephem

安装 Pystan:

conda install -c conda-forge pystan

最后安装 Fbprophet

conda install -c conda-forge fbprophet

于 2019-05-23T13:33:23.520 回答
5

以管理员身份访问Anaconda Prompt 您正在使用的环境:

以管理员身份访问 Anaconda Prompt

并运行

conda install -c conda-forge fbprophet -y

我刚刚在这里尝试过(在 Windows 10 64 位上),它运行良好。


这是先知使用 Anaconda的建议

用于conda install gcc设置 gcc。安装 Prophet 最简单的方法是通过 conda-forge:conda install -c conda-forge fbprophet

于 2020-11-17T15:29:34.607 回答
3

2021年最新安装代码:

pip install pystan==2.19.1.1, 然后pip install prophet

另外,安装后重启你的 jupyter notebook

于 2021-08-28T20:36:05.000 回答
1

Here's my solution. I have not use conda-forge before, so reading up on this article helps.

  1. Making sure that conda is ≥4.9
conda --version
  1. add conda forge channel
conda config --add channels conda-forge
conda --set channel_priority strict
  1. install gcc
conda install gcc
  1. install prophet
conda install -c conda-forge prophet

I used the prophet documentation here

于 2021-08-16T19:53:06.207 回答
1

不安装Conda, Win 10, Python 3.8.8 64 bit.

pip3 install Cython

然后安装

重启你的机器

安装

pip3 install pystan==2.17.1.0

pip3 install fbprophet
于 2021-06-07T16:30:52.220 回答
0

我遇到了同样的问题,我的解决方案是:-

用Python3.5创建新环境

conda create -n pht python=3.5 anaconda

使用命令安装 Prophet。

conda install -c conda-forge fbprophet

我没有安装“gcc”,尽管在安装 Prophet 之前有人建议这样做。

于 2019-07-16T12:52:31.767 回答