I just installed scipy (through easy_install scipy), but for some reason scipy.misc is missing.
Take a look at this:
>>> import scipy
>>> scipy
<module 'scipy' from '/home/boda/python-2.7.1/lib/python2.7/site-packages/scipy-0.11.0-py2.7-linux-i686.egg/scipy/__init__.pyc'>
>>> scipy.misc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'misc'
Does anyone know what could have happened? There are literally 0 Google results for scipy.misc missing. I seem to be the first person to whom this has happened.
The modules inside scipy aren’t accessible as attributes of the base scipy package. You need to do
import scipy.miscorfrom scipy import misc.