全部博文(2065)
分类: Python/Ruby
2009-11-24 17:12:35
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)