Cannot import `multivariate_normal` when using` scipy.stats`

I am trying to create pdf value of multidimensional distribution with scipy. This is the statement importin my script:

from scipy.stats import multivariate_normal

but he throws ImportError:

ImportError: cannot import name multivariate_normal

Everything else is working fine.

+4
source share
3 answers

If you are using version 0.13.3, you can update it on the command line with pip install scipy --upgrade

+5
source

Ubuntu 14.04 python 2.7. , . - , scipy 0,14 . sudo pip install scipy --upgrade . numpy, scipy, scipy numpy. . , , .

1) , scipy

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose

2) , numpy, scipy ,

sudo pip install numpy --upgrade

3) , scipy

sudo apt-get build-dep python-scipy

4)

sudo pip install scipy --upgrade
0

[ ]

NumPy, Scipy. multivariate_normal scipy.stats

pip install numpy --upgrade --user

pip install scipy --upgrade --user

0

All Articles