Chinaunix首页 | 论坛 | 博客
  • 博客访问: 26267513
  • 博文数量: 2065
  • 博客积分: 10377
  • 博客等级: 上将
  • 技术积分: 21525
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-04 17:50
文章分类

全部博文(2065)

文章存档

2012年(2)

2011年(19)

2010年(1160)

2009年(969)

2008年(153)

分类: Python/Ruby

2009-11-24 17:12:35

1. 安装

Once you have python up and running, you will need to install . numpy provides high performance array data structures and mathematical functions, and is a requirement for matplotlib. You can test your progress:

>>> import numpy
>>> print numpy.__version__
1、下载这个东西下来是为了使用一些内置的数学函数的~
matplotlib requires numpy version 1.1 or later
一开始下载错了。不过现 在好了!
奇怪哦好像还 要配置一下环境变量什么 的!
2、 下载一下这个东西!
we strongly encourage you to install
,
which is an interactive shell for python that is matplotlib aware.我下载下来了!

Once you have ipython,
numpy and matplotlib installed, in ipython’s “pylab” mode you have a
matlab-like environment that automatically handles most of the
configuration details for you, so you can get up and running quickly:
johnh@flag:~> ipython -pylab
Python 2.4.5 (#4, Apr 12 2008, 09:09:16)
IPython 0.9.0 -- An enhanced Interactive Python.

Welcome to pylab, a matplotlib-based Python environment.
For more information, type 'help(pylab)'.

In [1]: x = randn(10000)

3、 下载 它自己



In [2]: hist(x, 100)


阅读(1187) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~