Python WordCloud代码中的导入错误.他们说没有名为wordcloud的模块 [英] import error in Python WordCloud code.they said no module called wordcloud

查看:82
本文介绍了Python WordCloud代码中的导入错误.他们说没有名为wordcloud的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Python WordCloud代码中出现导入错误.

I get import error in Python WordCloud code.

from wordcloud import WordCloud
import matplotlib.pyplot as plt

ModuleNotFoundError:没有名为'wordcloud'的模块

ModuleNotFoundError: No module named 'wordcloud'

推荐答案

Link;
https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud

Wordcloud: a little word cloud generator.

download
wordcloud‑1.6.0‑cp38‑cp38‑win32.whl

into the folder; copy-past
C:\Python\Scripts

CMD

cd\
cd C:\Python\Scripts

install
python -m pip install wordcloud-1.6.0-cp38-cp38-win32.whl

pip install wordcloud

result; occurs in folder;
C:\Python\Lib\site-packages
    wordcloud
    wordcloud-1.6.0.dist-info 

这篇关于Python WordCloud代码中的导入错误.他们说没有名为wordcloud的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆