Python2.7安装matplotlib、numpy

Windows版本

一、从官网下载python2.7,安装过程中把pip给装上,并且把path也选上,就是把自带的工具全选;

二、在cmd下输入python,会进入交互式界面,出了问题很大程度上是因为路径的原因;

三、退出交互式界面,exit()。

四、进入到C:\Python27\Scripts,会发现里面有pip,在Script下输入pip install pip --upgrade

五、最重要的一步来了,网上很多教程,是让你东安装一下,西安装一下,把人整的很晕,其实只需要输入pip install Matplotlib,就会自动安装好matplotlib,以及需要的组件,如numpy。

六、测试了下,可以绘图,也可以使用numpy的函数,图略(懒)。。。

时间: 2024-08-01 18:08:01

Python2.7安装matplotlib、numpy的相关文章

Python2.7 中安装 matplotlib

本文主要说明的是在windows python2.7标准版 中安装matplotlib过程中遇到的重点问题,以及解决方法. 具体的安装步骤就不说了,网上可以搜到很多,主要说一下安装的过程中遇到问题的解决方法. 首先推荐使用setuptools这个插件来安装matplotlib需要的依赖包, 以windows 32 xp为例,可以到http://pypi.python.org/pypi/setuptools 中,下载ez_setup.py 这个脚本,然后执行, 成功执行ez_setup.py以后,

python2.7安装numpy报错:is not a supported wheel on...

python2.7安装numpy时报错信息如下: C:\Python27\Scripts>pip install "numpy-1.9.2+mkl-cp26-none-win_amd64.whl" numpy-1.9.2+mkl-cp26-none-win_amd64.whl is not a supported wheel on this platfor m. 错误原因: 事实上是因为,我的python为2.7版本,下载的numpy为2.6版本,所以错误. 解决方案: 参见:f

Ubuntu10.04 python2.6下安装matplotlib环境

一.准备工作1.sudo apt-get install python-numpy2.sudo apt-get install python2.6-dev3.sudo apt-get install libpng12-dev4.sudo apt-get install libfreetype6-dev5.sudo apt-get install python-mysqldb 二.开始安装Matplotlib1. 下载安装文件:http://sourceforge.net/projects/mat

python 安装matplotlib

Ubuntu安装Matplotlib ubuntu下安装matplotlib的复杂度远远比windows下复杂的多,相对双击就能解决问题的,现在你需要时不时的解决编译带来的各种问题. 1 sudo apt-get install python-dev 先安装numpy: 1 2 python setup.py build sudo python setup.py install --prefix=/usr/local 之后开始安装matplotlib,这下编译matplotlib就没有之前那样一

安装matplotlib的步骤

方法: 首先matplotlib是需要numpy先行包支持的,这里,我已经安装了numpy,下面安装matplotlib. matplot需要一些其他软件支持 (1)这时需要安装freetype 和 png 这两个库,安装依赖的库. yum install freetype freetype-devel python-freetype yum install libpng libpng-devel python-pypng (2).yum search matplotlib 返回结果是: [[e

ubuntu 下安装 matplotlib

直接使用sudo easy_install matplotlib 报错 ============================================================================ Edit setup.cfg to change the build options BUILDING MATPLOTLIB matplotlib: yes [1.3.1] python: yes [2.7.6 (default, Mar 22 2014, 22:59:56

安装matplotlib

一.  在Linux系统中安装matplotlib 如果我们使用的是系统自带的Python版本,可使用系统的包管理器来安装matplotlib,为此只需执行一行命令: $ sudo apt-get install python3-matplotlib 如果我们使用的是Python2.7,请执行如下命令: $ sudo apt-get install python-matplotlib 如果我们安装了较新的Python版本,就必须安装matplotlib依赖的一些库: $ sudo apt-get

Windows7 x64系统上为python3.4 安装matplotlib

Windows 7 x64系统上为Python3.4导入matplotlib遇到一些问题,经查找最终得到解决方案: 下载Windows 64位系统下Python 3.4安装matplotlib所需的whl文件:(下载地址http://www.lfd.uci.edu/~gohlke/pythonlibs/) numpy-1.9.2cp34-none-win_amd64.whl scipy-0.16.0rc1-cp34-none-win_amd64.whl matplotlib-1.4.3-cp34

python 2.7 如何安装matplotlib -window 64位

安装文件下载: http://pan.baidu.com/s/1jHUSznK Matplotlib是一个Python的图形框架,类似于MATLAB和R语言. Matplotlib的官网地址是 http://matplotlib.org/下载地址为 http://matplotlib.org/downloads.html,选择对应的版本即可安装,我选择的版本为 matplotlib-1.3.1.win32-py2.7.exe. 下载NumPy1.8各种版本: https://sourceforg