[Env] Python3 – Konlpy

 – Env : Ubuntu, Conda3.5(Python 3.5) ,  Java1.8

1. install konlpy

pip install nltk-3.2.1
pip install konlpy-0.4.4

2. install open jdk

apt-get install openjdk-8-jdk

 3. install lib’s for compile

sudo apt-get install g++ python-dev

 4. install jpype with conda

conda install -c conda-forge jpype1

5. Mecab Install

https://bitbucket.org/eunjeon/mecab-ko-dic/downloads-dic/downloads

install mecab with konlpy

sudo apt-get install curl
bash <(curl -s https://raw.githubusercontent.com/konlpy/konlpy/master/scripts/mecab.sh)

install gcc for c compile

conda install libgcc

install mecab dic

wget https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.0.1-20150920.tar.gz
tar xzvf mecab-ko-dic-2.0.1-20150920.tar.gz
cd mecab-ko-dic-2.0.1-20150920
./configure 
make
sudo make install 

sudo ldconfig
ldconfig -p | grep /usr/local/lib

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *