0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

WSL(Ubuntu 20.04.3 LTS)で、MeCab を Install して Python3系で動作させる

Last updated at Posted at 2021-12-10

#経緯
形態素解析で利用する MeCab をそのままpipenv install mecab-python3としても、Install できなかったので忘備録です。

環境

  • OS: Windows10(WSL: Ubuntu 20.04.3 LTS)
  • Python: 3.10.0
  • pipenv: 2021.5.29

MeCab に必要な Package を Install する

下記の Package が、MeCab が動作するのに必要で、こちらを Install しないと pipenv install mecab-python3としても Error が発生して Install できませんでした。

$ sudo apt update
$ sudo apt install mecab mecab-ipadic-utf8 libmecab-dev swig

MeCab を Install する

$ pipenv install mecab-python3

無事に Install され Python で動作しました。

0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?