1、python开发需要安装一些库(机器学习库、画图库等)
首先安装easy_install,并设置国内源
#easy_install python package
wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py -O - | python
echo """
[easy_install]
index_url = http://pypi.tuna.tsinghua.edu.cn/simple
""" > ~/.pydistutils.cfg
easy_install pyhs2
easy_install jieba
easy_install nltk
easy_install requests
easy_install xlwt
2、安装pip,然后按照一些包
- sudo easy_install pip
- sudo pip install -U numpy
- sudo pip install -U scipy
- sudo pip install -U pyyaml nltk
3、安装画图包
Ubuntu
sudo apt-get install python-matplotlib
centos
[root@JH4-18-148 ask]# easy_install matplotlib