Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EX2:ValueError: Only supported for TrueType fonts #50

Open
FLoutione opened this issue Oct 27, 2023 · 1 comment
Open

EX2:ValueError: Only supported for TrueType fonts #50

FLoutione opened this issue Oct 27, 2023 · 1 comment

Comments

@FLoutione
Copy link

FLoutione commented Oct 27, 2023

在完成了实验二的代码编写之后,运行bin/spark-submit /home/hadoop/Experiment/Ex2_WordCount/WordCount.py命令时,出现错误:
image
原因是我们使用的python3.6版本,而在WordCloud最新官方文档中提到最新版本的WordCloud不支持Python3.6,所以使用Python 3.6,重新安装词云1.8.0(pip install wordcloud==1.8.0)。
https://github.com/amueller/word_cloud/tree/1.9.0 , 在github的1.9.0版本中可以看到官方只在3.7之后的版本进行了测试
image

@FLoutione
Copy link
Author

FLoutione commented Oct 27, 2023

运行sudo pip3 install wordcloud==1.8.0 -i https://pypi.tuna.tsinghua.edu.cn/simple 来安装wordcloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant