AttributeError: 'module' object (scipy) has no attribute 'misc'

前端 未结 4 767
無奈伤痛
無奈伤痛 2020-12-01 09:58

I updated from ubuntu 12.04 to ubuntu 12.10 and the python module I have written suddenly no longer works with the error message that the module scipy does not have the attr

4条回答
  •  醉酒成梦
    2020-12-01 10:53

    >>> import scipy
    >>> scipy.misc
    Traceback (most recent call last):
      File "", line 1, in 
    AttributeError: 'module' object has no attribute 'misc'
    >>> 
    >>> 
    >>> import scipy.misc
    >>> scipy.misc.imsave
    
    >>>
    

    Which seems to be quite common with scipy.

提交回复
热议问题