如何使用Python和SciPy的获得poissio随机变量?哇...我安装scipy和每个文档我得到没有模块命名为scipy.stats?我在Ubuntu 12.04上。所以......去图无模块 - 为什么尽管SciPy的安装
http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.poisson.html
[email protected]:~/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.
[email protected]:~/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
python-scipy版本为3或2.7的python?你可以只导入scipy吗? – prgao
你可以'输入scipy''吗?它的版本是什么? – fjarri
尝试检查哪些文件被安装了'蟒蛇-scipy',我认为Ubuntu是'dpkg的-L中的python-scipy' –