windows下Python matplotlib的安装
来源:互联网 发布:mysql python 安装 编辑:程序博客网 时间:2024/06/15 21:35
背景:利用Python画图,就需要用到matplotlib包,windows下安装的Python-2.7版本。
依赖的包:
1. numpy :http://sourceforge.net/projects/numpy/files/NumPy/1.8.1/;下载其中的numpy-1.8.2-win32-superpack-python2.7。
2. scipy:http://sourceforge.net/projects/scipy/files/。
3. matplotlib:http://matplotlib.org/downloads.html,选择对应的版本matplotlib-1.3.1.win32-py2.7.exe。
注:前三个都是exe文件,在Windows下直接双击安装即可。
4.C:\Python27\Lib\site-packages\scipy\lib中的six.py six.pyc six.pyo三个文件拷贝到C:\Python27\Lib\site-packages目录下。
5.dateutil,在命令行,模式下装dateutil
cd 到 C:\Python27\Scripts\pip.exe install python-dateutil
6.安装pyparsing
cd 到 C:\Python27\Scripts\pip.exe install pyparsing
测试:在命令行中敲入Python和import matplotlib.pyplot as plt不报错表明安装成功
第一个python 画图:
import numpy as np
import pylab as pl
x = [1, 2, 3, 4, 5]# Make an array of x values
y = [1, 4, 9, 16, 25]# Make an array of y values for each x value
pl.plot(x, y)# use pylab to plot x and y
pl.show()# show the plot on the screen
0 0
- windows下Python matplotlib的安装
- windows下python安装matplotlib
- [Python]windows下安装matplotlib
- Windows下python安装matplotlib
- python numpy,matplotlib,setuptools windows环境下的安装
- windows下python的NumPy、SciPy、matplotlib安装
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- 在windows下python,pip,numpy,scipy,matplotlib的安装
- 【python】matplotlib在windows下安装
- Python----Matplotlib模块在Windows下安装
- windows 环境下 python 安装matplotlib
- windows下python,numpy,scipy,matplotlib安装
- windows下安装python库matplotlib
- Python 在Windows下安装matplotlib
- windows下安装matplotlib
- matplotlib windows下安装
- Windows下安装matplotlib
- 关于matplotlib在windows下的安装
- SAS如何和HADOOP交互、集成?
- Android 中listview嵌套listview,外面listview的item点击事件失效
- [转载]数据库
- 项目开发中遇到的坑
- 人脸识别最新数据库(表情)汇总
- windows下Python matplotlib的安装
- 信号量内核对象的使用规则
- minSdkVersion、compileSdkVersion和targetSdkVersion
- Quartz系列笔记(4) -- Job和JobDetail的更多介绍
- sklearn.covariance.EllipticEnvelope
- fragment嵌套viewpager不显示
- shannon编码
- _ENV和_G
- mysql conv函数