为 fbprophet 运行 setup.py install ... 错误

Cam*_*m K 1 python pip pystan

我无法安装 fbprophet 或 gcc7。

我已经手动安装了一个预编译的 ephem。

Running setup.py install for fbprophet ... error
Run Code Online (Sandbox Code Playgroud)

我试过 python 3.6 和 3.7。我试过以管理员身份运行和不运行。

我的 anaconda 提示无法安装任何东西而不抛出错误。我宁愿使用pip。

问题可能与pystan有关。

File "d:\python37\lib\site-packages\pystan\api.py", line 13, in <module> import pystan._api  # stanc wrapper
ImportError: DLL load failed: The specified module could not be found.
Run Code Online (Sandbox Code Playgroud)

我正在使用 Windows 10。

Mah*_*shi 9

使用:第一步是移除pystan和缓存:

pip uninstall fbprophet pystan
pip --no-cache-dir install pystan==2.17  #any version
pip --no-cache-dir install fbprophet==0.2 #any version
conda install Cython --force

pip install pystan
conda install pystan -c conda-forge
conda install -c conda-forge fbprophet
Run Code Online (Sandbox Code Playgroud)

它创建一个轮子并更新包所需的环境。pip install fbprophet 创建了类似的问题。

确保pystan正在工作。

import pystan
model_code = 'parameters {real y;} model {y ~ normal(0,1);}'
model = pystan.StanModel(model_code=model_code)
y = model.sampling().extract()['y']
y.mean()  # with luck the result will be near 0
Run Code Online (Sandbox Code Playgroud)

使用此链接:在 Windows 上安装 PyStan