// アップデート $ sudo apt-get update // easy_installを使えるようにする $ sudo apt-get install python-setuptools # easy_installを使ってNLTKをインストール $ sudo easy_install nltk # 動作試験 $ python Python 2.7.3 (default, Jan 13 2013, 11:20:46) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import nltk >>>
$ sudo easy_install pip $ sudo pip install -U numpy $ sudo pip install -U pyyaml
$ wget https://mecab.googlecode.com/files/mecab-0.996.tar.gz $ tar zxvf mecab-0.996.tar.gz $ cd mecab-0.996/ $ ./configure --enable-utf8-only --prefix=/usr $ make $ sudo make install
$ wget https://mecab.googlecode.com/files/mecab-ipadic-2.7.0-20070801.tar.gz $ tar zxvf mecab-ipadic-2.7.0-20070801.tar.gz $ cd mecab-ipadic-2.7.0-20070801/ $ ./configure --with-charset=utf8 --enable-utf8-only $ make $ sudo make install
$ wget https://mecab.googlecode.com/files/mecab-python-0.996.tar.gz $ tar zxvf mecab-python-0.996.tar.gz $ cd mecab-python-0.996/ $ python setup.py build $ sudo python setup.py install
$ apt-get install python2.7-dev