[SciPy-User] Strange import behaviour
Sat Aug 18 18:07:29 CDT 2012
I have come across a very strange behaviour of Scipy. It has to do with
importing and using Scipy functions.
For example, this works:
>>> import scipy.sparse as ss
<module 'scipy.sparse' from
However this does not work:
>>> import scipy as sp
Traceback (most recent call last):
File "<ipython-input-2-0c35c470f8a4>", line 1, in <module>
AttributeError: 'module' object has no attribute 'sparse'
The above example is merely a condensation of my real problem (using
spsolve from scipy.sparse.linalg). What might cause this problem?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User