PIL http://www.pythonware.com/products/pil/
安装
1)sudo apt-get install libjpeg-dev
2)sudo apt-get install libfreetype6-dev
3)sudo easy_install PIL
easy_install 安装:(需要有ez_setup.py)
1. sudo su 2.python ez_setup.py
gensim http://radimrehurek.com/gensim/install.html
安装
gensim依赖NumPy和SciPy这两大Python科学计算工具包,首先安装这两个工具包
sudo apt-get install python-numpy python-scipy
然后安装gensim
Run in your terminal:
easy_install -U gensim
(easy_install安装 1. sudo su 2.python ez_setup.py 需要有ez_setup.py)
or, alternatively:
pip install --upgrade gensim
(首先要安装pip sudo apt-get install-pip)
NLTK
sudo easy_installpip
run sudo pip install -U numpy
sudo pipinstall -U pyyamlnltk
Test installation: run python then typeimport nltk
matplotlib
需要先安装numpy,因为里面很多图形处理函数都要依赖numpy里的数学计算
sudo apt-get install python-matplotlib