Installation

Note

For troubleshooting information, see these pages: Linux. Mac OS. Windows. Please record a “New Issue” if you have an error that is not listed. You can also see testing logs here.

Ubuntu

  1. From the command prompt, install KoNLPy.
$ sudo apt-get install python-dev python3-dev
$ pip install konlpy    # Python 2.x
$ pip3 install konlpy   # Python 3.x
  1. Install MeCab (optional)
$ sudo apt-get install curl
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)

Mac OS

  1. From the command prompt, install KoNLPy.
$ pip install konlpy     # Python 2.x
$ pip3 install konlpy    # Python 3.x
  1. Install MeCab (optional)
$ bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh) # (Optional) Install MeCab

Windows

  1. Set JAVA_HOME.

2. Download and install JPype1 (>=0.5.7). [1] You may have to upgrade your pip version in order to install the downloaded .whl file.

> pip install --upgrade pip
> pip install JPype1-0.5.7-cp27-none-win_amd64.whl
  1. From the command prompt, install KoNLPy.
> pip install konlpy
  1. Download, extract [2], and install the most recent version of MeCab from the following links (optional):

Warning

  • KoNLPy only supports Kkma(), Komoran() on Windows machines. Mecab(), Hannanum() are not supported.
  • Are you having trouble installing MeCab-ko to your Windows machine? Refer to this blog post by Kim YungYi: mecab-ko 윈도우에서 빌드하기 (In Korean).
[1]win-amd64 for 64-bit Windows, win32 for 32-bit Windows.
[2]Having MinGW/MSYS or Cygwin installed may be more convenient. If you plan to use Git, Git BASH is another good option. Otherwise, you can use 7zip for the extraction of tar files.
comments powered by Disqus
Fork me on GitHub

Table Of Contents

Related Topics