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

问题描述

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

I get import error in Python WordCloud code.

from wordcloud import WordCloud
import matplotlib.pyplot as plt

推荐答案

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的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 10:23