[SciPy-dev] numpy.linalg prevents use of scipy.linalg?

Travis Oliphant oliphant at ee.byu.edu
Fri Mar 3 19:49:15 CST 2006

Zachary Pincus wrote:

>Hi folks,
>I can't seem to use any of the functions in scipy.linalg because  
>numpy defines its own linalg which shadows that of scipy!
>Specifically, scipy.linalg defines 'norm' (in linalg/basic.py), and  
>numpy doesn't. (This among other differences, I assume.)
>In [1]: import scipy
>In [2]: scipy.linalg.norm
>AttributeError: 'module' object has no attribute 'norm'
What version are you using?  This was a problem in the __init__ file 
that was fixed. 

Just go to [...]/python2.4/site-packages/scipy/__init__.py

and right after the line with 'del lib'  enter a line with 'del linalg'

Things should work much better after that.


More information about the Scipy-dev mailing list