在mac下安装matplotlib,xlrd

brew install freetype
brew install libpng

sudo easy_install pip
#图形显示模块 sudo pip install matplotlib

输入以下命令来测试是否安装成功:
python -c 'import matplotlib.pyplot as pyplot; pyplot.pie([1,2,3]); pyplot.show()'
#读取xls文件(Excel)模块
sudo pip install xlrd
 
posted @ 2015-01-19 18:57  dayday+up  阅读(1352)  评论(0编辑  收藏  举报