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
okay,坑点终于搞清了,以下是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了。