Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

scipy.misc missing

Tags:

python

scipy

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.

like image 459
bodacydo Avatar asked May 20 '26 21:05

bodacydo


1 Answers

The modules inside scipy aren't accessible as attributes of the base scipy package. You need to do import scipy.misc or from scipy import misc.

like image 144
BrenBarn Avatar answered May 22 '26 12:05

BrenBarn



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!