在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
 
原文地址:https://www.cnblogs.com/ryuham/p/4234526.html