Sunday, August 8, 2010

A problem using scipy and numpy

If you installed scipy and numpy using the Ubuntu command apt-get install [package-name], check if importing scipy.stats results in an error.

There was an error when I tried to import scipy.stats. It complained of wrong data type for
von_mises stats distribution function.

The fix is to remove them using apt-get remove and then reinstalling from the latest svn sources.

svn co http://svn.scipy.org/svn/numpy/trunk numpy
svn co http://svn.scipy.org/svn/scipy/trunk scipy

Istall subversion if not yet installed.
Then cd to each directory and issue sudo python setup.py install to install each package.

No comments:

Post a Comment