LoginSignup
1
0

More than 3 years have passed since last update.

centOS7にProphetをインストールしてみた

Last updated at Posted at 2020-06-11

やったこと

VirtualBoxで構築したLinuxサーバー(centOS7)にFacebook社の時系列解析ツールであるProphetを入れました
※Pythonは触ったことがありません

インストール

どうやってinstallするのか、公式のDocumentationを見ます
https://facebook.github.io/prophet/docs/installation.html

なるほど、pipで入れてみようかな、と思い挑戦したのですが、たくさんトラップがあり初心者にはかなり厳しいです

公式Documentation曰く、
The easiest way to install Prophet is through conda-forge: conda install -c conda-forge fbprophet.

はい、おとなしくAnaconda使います・・・

Anacondaをinstall

こちらからinstallします。
https://www.anaconda.com/products/individual

ちなみに当初Python3.6を使用していたのですが、AnacondaのinstallページにPython3.7と書いてあったので、下記リンクを参考に念のためバージョンを上げました。念のため。
https://qiita.com/shiranon/items/889b9d32bea0df4b89dc

Prophetをinstall

以下のコマンドを実行

conda install -c conda-forge fbprophet
conda install -c conda-forge/label/cf202003 fbprophet

使ってみよう

無事(?)installができたので、動作確認してみましょう

公式のQuick start guideです。
https://facebook.github.io/prophet/docs/quick_start.html#r-api

おや?こちらのコマンドを実行すると
from fbprophet import Prophet

Python
from fbprophet import Prophet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'fbprophet'

うまくinstallできなかったのかな?と思って散々悩んだ挙句、使い始めるときはこのコマンドが必要だとわかりました。

conda activate

ほえ~
まだまだPythonのこともAnacondaのこともProphetのことも、全然わかっていないので精進します・・・

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0