导入wordcloud库出错-ModuleNotFoundError: No module named wordcloud.query_integral_image

时间:2024-05-23 16:01:57

作者:Irain
QQ:2573396010
微信:18802080892

1 报错内容

Traceback (most recent call last):
File “<pyshell#0>”, line 1, in
import wordcloud
File “E:\Working\Python37-32\lib\wordcloud_init_.py”, line 1, in
from .wordcloud import (WordCloud, STOPWORDS, random_color_func,
File “E:\Working\Python37-32\lib\wordcloud\wordcloud.py”, line 26, in
from .query_integral_image import query_integral_image
ModuleNotFoundError: No module named ‘wordcloud.query_integral_image’

2 解决步骤

2.1 删除多余同名wordcloud文件夹和不同版本wordcloud库(小编安装多个版本wordcloud库)

导入wordcloud库出错-ModuleNotFoundError: No module named wordcloud.query_integral_image

2.2删除多余wordcloud库后,成功导入wordcloud库

导入wordcloud库出错-ModuleNotFoundError: No module named wordcloud.query_integral_image

3 手动下载wordcloud:https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud

导入wordcloud库出错-ModuleNotFoundError: No module named wordcloud.query_integral_image
发布:2020年5月29日