Uma solução para instalar com sucesso o fbprophet no Linux

Informações sobre a versão do sistema operacional e do Python:

OS    :centos7
Python:3.6.8

Em seguida, outro parágrafo:

This usually means that the C++ compiler isn't hooked up correctly to PyStan. PyStan will successfully install even if it is not able to function correctly.
You can use this code to check that pystan is working (which I'm pretty sure it is not):

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
The reason it isn't working is because CentOS 7 does not support C++14, which is a new requirement for the latest version of PyStan. The solution is to downgrade to PyStan 2.18: stan-dev/pystan#583 , or upgrade from CentOS 7 to a newer OS.

A informação acima foi retirada de: centos7 não suporta c ++ 14, centos7 não suporta c ++ 14, centos7 não suporta c ++ 14

A outra é que gcc retorna 1 e python-devel precisa ser instalado. Python3 corresponde a python3-devel, python3-devel e python3-devel

Ok, os poços foram finalmente descobertos, o seguinte é a instalação bem-sucedida do pip.

首先,不必多说了: 
    yum install python3-devel
    
    python3用户是python3-devel, 是python3-devel, 是python3-devel!

其次,安装2.18版的pystan:
    pip3 install pystan==2.18
	
最后,安装fbprophet:
    pip3 install fbprophet

Desde então, o fbprophet foi finalmente instalado.

Desde então, o fbprophet finalmente está funcionando normalmente.

 

Acho que você gosta

Origin blog.csdn.net/lanxuxml/article/details/108484229
Recomendado
Clasificación