【问题标题】:Failed building wheel for fbprophet in Jupyter NotebookJupyter Notebook 中 fbprophet 的构建轮子失败
【发布时间】:2019-11-01 18:05:40
【问题描述】:

我正在尝试使用 !pip install fbprophet 在 Jupyter Notebook 中安装 fbprophet。

我已经有 pystan 和 Microsoft Visual Studio

以下是我得到的错误

fbprophet 构建轮子失败 命令 "C:\Users\evaldovi\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\evaldovi\AppData\Local\Temp\pip-install -e2tuxpri\fbprophet\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\evaldovi\AppData\Local\Temp\ pip-record-yijav0j4\install-record.txt --single-version-externally-managed --compile" 在 C:\Users\evaldovi\AppData\Local\Temp\pip-install-e2tuxpri\fbprophet 中出现错误代码 1 失败\

【问题讨论】:

    标签: python pip jupyter-notebook


    【解决方案1】:
    Usually the source of this issue is that PyStan is not working due to the C++ compiler not working properly.
    You can check if PyStan is working with
    
    import pystan
    model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
    model = pystan.StanModel(model_code=model_code)  # this will take a minute
    y = model.sampling(n_jobs=1).extract()['y']
    y.mean()  # should be close to 0
    

    Anaconda 的安装稍微复杂一些,因为它有一个独立于系统 python 的构建环境。在 Anaconda 中安装 fbprophet 最简单的方法是通过 conda forge:

    conda install gcc
    conda install -c conda-forge fbprophet
    

    【讨论】:

    • 非常感谢您对 conda 的指导!在 CMD 中运行 conda install -c conda -forge fbprophet 行后它工作了
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-11
    • 2018-01-07
    • 2017-03-17
    • 2020-11-09
    • 2018-05-31
    • 2018-06-17
    相关资源
    最近更新 更多