如何使用python和scipy来获得一个poissio随机变量?哇..我安装scipy并根据文档我得到没有模块名为scipy.stats?我在ubuntu 12.04.所以......去看看
http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson.html
ubuntu@ubuntu:~/Downloads$ sudo apt-get install python-scipy
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-scipy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 482 not upgraded.
ubuntu@ubuntu:~/Downloads$ python
Python 2.7.3 (default, Apr 10 2013, 06:20:15)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.stats import poisson
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named scipy.stats
Run Code Online (Sandbox Code Playgroud)