Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

python - Running setup.py install for fbprophet ... error

I cannot install fbprophet or gcc7.

I have manually installed a precompiled ephem.

Running setup.py install for fbprophet ... error

I have tried with python 3.6 and 3.7. I have tried running as administrator and without.

My anaconda prompt cannot install anything without throwing errors. I would rather use pip.

The problem may be related to pystan.

File "d:python37libsite-packagespystanapi.py", line 13, in <module> import pystan._api  # stanc wrapper
ImportError: DLL load failed: The specified module could not be found.

I am using windows 10.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Use: The first step is to remove pystan and cache:

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

It creates a wheel and update the environment necessary for the package. pip install fbprophet creates the similar issue.

Be sure that pystan is working.

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

Use this link: Installing PyStan on windows


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...