anaconda 安装 wordcloud模块后调用失败ImportError

conda install wordcloud后导入报错如下:

import wordcloud
Traceback (most recent call last):
File “”, line 1, in
File “C:\ProgramData\Anaconda3\lib\site-packages\wordcloud__init__.py”, line 1, in
from .wordcloud import (WordCloud, STOPWORDS, random_color_func,
File “C:\ProgramData\Anaconda3\lib\site-packages\wordcloud\wordcloud.py”, line 19, in
from PIL import Image
File “C:\ProgramData\Anaconda3\lib\site-packages\PIL\Image.py”, line 56, in
from . import _imaging as core
ImportError: DLL load failed: 找不到指定的模块。

解决:
查找原因可能是pillow模块版本不支持,我原先的是4.1.0,卸载pillow然后按照4.0.0版本,具体参考:stackoverfloww

你可能感兴趣的:(anaconda 安装 wordcloud模块后调用失败ImportError)