Linux에 fbprophet을 성공적으로 설치하는 솔루션

OS 및 Python 버전 정보 :

OS    :centos7
Python:3.6.8

그런 다음 다른 단락 :

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.

위의 정보는 다음에서 가져온 것입니다. centos7은 C ++ 14를 지원하지 않음, centos7은 C ++ 14를 지원하지 않음, centos7은 C ++ 14를 지원하지 않습니다.

다른 하나는 gcc가 1을 반환하고 python-devel을 설치해야한다는 것입니다. Python3은 python3-devel, python3-devel 및 python3-devel에 해당합니다.

좋아요, 구덩이가 마침내 밝혀졌습니다. 다음은 pip의 성공적인 설치입니다.

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

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

그 이후로 fbprophet이 마침내 설치되었습니다.

그 이후로 fbprophet은 마침내 정상적으로 실행됩니다.

 

추천

출처blog.csdn.net/lanxuxml/article/details/108484229