如何使用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' –