使用 Jupyter Notebook 导入 wordcloud (Python)

Importing wordcloud using Jupyter Notebook (Python)

我正在使用 jupyter Notebook(conda root)。我运行的python版本是2.7

我很难将 wordcloud 安装到我的环境中。这是代码

from wordcloud import WordCloud

但是我得到了这个错误:

ImportErrorTraceback (most recent call last)
<ipython-input-21-8038e19af624> in <module>()
----> 1 from wordcloud import WordCloud

C:\Users\aneeq\Anaconda2\lib\site-packages\wordcloud\__init__.py in <module>()
----> 1 from .wordcloud import (WordCloud, STOPWORDS, random_color_func,
      2                         get_single_color_func)
      3 from .color_from_image import ImageColorGenerator
      4 
      5 __all__ = ['WordCloud', 'STOPWORDS', 'random_color_func',

C:\Users\aneeq\Anaconda2\lib\site-packages\wordcloud\wordcloud.py in <module>()
     17 from operator import itemgetter
     18 
---> 19 from PIL import Image
     20 from PIL import ImageColor
     21 from PIL import ImageDraw

C:\Users\aneeq\Anaconda2\lib\site-packages\PIL\Image.py in <module>()
     56     # Also note that Image.core is not a publicly documented interface,
     57     # and should be considered private and subject to change.
---> 58     from . import _imaging as core
     59     if PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None):
     60         raise ImportError("The _imaging extension was built for another "

**ImportError: DLL load failed: The specified module could not be found.**

谁能解释一下这个错误是什么? 我的家庭作业需要使用 world cloud

python Pillow 模块的一部分存在问题:使用从 _imaging.c 构建的库。尝试从 .exe 包中重新安装 python Pillow 模块,而不是 pip.