python导入wordcloud_使用Jupyter Notebook(Python)导入wordcloud

I am using jupyter Notebook(conda root). The python version I am running is 2.7

I am having a hard time getting wordcloud installed into my environment. Here's the code

from wordcloud import WordCloud

But I got this error:

ImportErrorTraceback (most recent call last)

in ()

----> 1 from wordcloud import WordCloud

C:\Users\aneeq\Anaconda2\lib\site-packages\wordcloud\__init__.py in ()

----> 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 ()

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 ()

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.**

Can anyone explain what is this error?

I need to use world cloud for my homework assignment

解决方案

You have problem with part of python Pillow module: with a library, that builds from _imaging.c. Try to reinstall python Pillow module from .exe package, not with pip.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值