LoginSignup
3

More than 5 years have passed since last update.

centos7.2でpython + mecabの環境構築方法

Last updated at Posted at 2016-10-15

インストール手順

以下の手順で各ソフトウェアをインストールする.
(基本的な手順は参考に示す記事の通りだが,当環境ではpip,python-develのインストールが必要だった)

EPELリポジトリを追加する(python-pipのインストールに必要).
sudo yum install epel-release

Pythonをインストールする(Pythonは2.7).
sudo yum install python python-devel python-pip

yumからMeCabをインストールできるようにするため,Groonga リポジトリを追加する.
sudo rpm -ivh http://packages.groonga.org/centos/groonga-release-1.1.0-1.noarch.rpm

MeCabをインストールする.
sudo yum install mecab mecab-devel mecab-ipadic

PythonからMeCabを使うためのバインディングをインストールする.
sudo pip install mecab-python

参考

yumでMeCabをインストール
Python + mecab をyum のみで入れる、3つのステップ

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
3