炼丹记之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

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了。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值