Python学习-windows安装Python以及matplotlib.pyplot包
来源:互联网 发布:淘宝客领取优惠券 编辑:程序博客网 时间:2024/06/07 00:40
引文: Python自带了许多的库文件,其中matplotlib可以做出类似于MATLAB和R语言一样绘制出很好的图形功能,下面介绍下怎么安装这个包,因为自己安装的时候很多地方都出错了。
环境:
- Windows X64
- python2.7.5
说明:虽然电脑是64位系统,但电脑装的python依旧是32位的。
1 python下载和安装
1.1 python下载
首先下载python2.7.5:https://www.python.org/downloads/windows/
或者到我的CSDN文库里面去下载,地址:http://download.csdn.net/detail/dream_angel_z/8735597
1.2 安装python
安装python,直接点击下载的软件,设置好python的安装路径,一直点下一步然后完成,很简单的。
2 安装相应的包
下面来安装matplotlib包,可以到我的CSDN文库中下载,全部依赖包都放在里面。
下载地址:http://download.csdn.net/detail/dream_angel_z/8735711
1.1 首先安装matplotlib
直接安装就是,因为安装了python后,系统会自动找到python的安装路径,然后安装到相应的位置,这里就不截图了。
2.2 安装dateutil和pyparsing
执行from matplotlib.pyplot import *应该会报缺少dateutil和pyparsing的错误,那么就安装dateutil和pyparsing
2.3 安装numpy
应该还会报错,缺少numpy,那么就安装numpy
2.4 安装six.py
最后还会报错,缺少six.py
这时候,解压下载文件中的six-1.4.1.tar.gz,到里面找到six.py文件,然后复制到python安装目录的..\python27\Lib\site-packages\dateutil下。
3 测试:
from matplotlib.pyplot import *
测试成功,ok!
- Python学习-windows安装Python以及matplotlib.pyplot包
- Python学习-windows安装Python以及matplotlib.pyplot包
- python matplotlib.pyplot importerror
- 【python】matplotlib.pyplot介绍
- Python---matplotlib.pyplot
- 【python】matplotlib.pyplot入门
- python之Matplotlib.pyplot
- Python matplotlib简介 Pyplot教程
- Python安装时import matplotlib.pyplot as plt报错
- Python安装时import matplotlib.pyplot as plt报错
- ImportError: No module named matplotlib.pyplot安装模块python
- python学习之(8)简单绘图matplotlib.pyplot
- 在windows上安装python的机器学习包numpy scipy scikit_learn matplotlib
- (Windows)Python用压缩包方法安装Numpy和MatplotLib
- windows 下python、Numpy、Matplotlib安装以及配置
- 在Windows上安装Python以及Numpy、Matplotlib等模块
- Python应用matplotlib.pyplot画图总结
- python matplotlib.pyplot出现中文乱码问题
- Android中@id与@+id区别(转自百度文库)
- 《C++高级编程(第3版)》
- C语言嵌套结构体示例
- 关于死锁,并用Java实现一个死锁
- android 自定义圆角头像以及使用declare-styleable进行配置属性解析
- Python学习-windows安装Python以及matplotlib.pyplot包
- linux下http多线程下载案例
- 浅谈CSRF攻击方式
- iOS音乐播放器(歌词自动滚动)
- 如何开发一个j2ee框架
- android 短信验证自动获取验证码
- 清理VS
- LIB和DLL的区别与使用
- BestCoder 2015百度之星资格赛1003 IP聚合