ImportError:DLL加载失败:找不到指定的模块。在导入词云时出现此错误

时间:2018-06-25 07:59:02

标签: python python-3.x

如何摆脱以下错误。我已尝试重新安装枕头(如提到的一些答案所示),但根本不起作用

ImportError                               Traceback (most recent call last)
<ipython-input-13-9ebaa473c3ee> in <module>()
 24 cf.go_offline()
 25 
---> 26 from wordcloud import WordCloud, STOPWORDS
 27 from scipy.misc import imread
 28 import base64

c:\users\vishnu\anaconda3\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\vishnu\anaconda3\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\vishnu\anaconda3\lib\site-packages\PIL\Image.py in <module>()
 58     # Also note that Image.core is not a publicly documented interface,
 59     # and should be considered private and subject to change.
  ---> 60     from . import _imaging as core
 61     if PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None):
 62         raise ImportError("The _imaging extension was built for another "

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

0 个答案:

没有答案