在官网下载
matplotlib-1.3.1.win32-py2.7.exe numpy-1.8.1-win32-superpack-python2.7.exe scipy-0.14.0rc1-win32-superpack-python2.7.exe
直接安装(已经安装 python2.7)
例如以下代码测试:
import matplotlib.pyplot as plt
#默认是 Y 轴的值,X 为 Y 的长度,自增 1
plt.plot([1,3,2,4])
plt.show()
错误1:
ImportError: matplotlib requires dateutil
错误2:
ImportError: matplotlib requires pyparsing
错误3:
ImportError: No module named six
直接到这个网址找依赖:
http://www.lfd.uci.edu/~gohlke/pythonlibs/
安装相应的包就可以了
运行效果: