如何安装scipy misc软件包

问题描述:

我已经安装(实际上已重新安装)scipy:

I have installed (actually reinstalled) scipy:

10_x86_64.whl (19.8MB): 19.8MB downloaded
Installing collected packages: scipy
Successfully installed scipy

但是显然不包括杂项子软件包吗?

But the misc subpackage is apparently not included?

16:03:28/shared $ipython
In [1]: from scipy.misc import imread
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-f9d3d927b58f> in <module>()
----> 1 from scipy.misc import imread

ImportError: cannot import name imread

安装scipy.misc软件包的方式是什么?

What is the way to install the scipy.misc package?

我认为您也需要安装PIL.来自 scipy.misc文档:

I think you need to install PIL as well. From the scipy.misc docs:

请注意,Python Imaging Library(PIL)不是SciPy的依赖项,因此pilutil模块在未安装PIL的系统上不可用.

Note that the Python Imaging Library (PIL) is not a dependency of SciPy and therefore the pilutil module is not available on systems that don’t have PIL installed.