WordCloud ValueError: Only supported for TrueType fonts

김예림·2024년 6월 6일
0
font_path = 'C:/Windows/Fonts/malgun.ttf'

wc = WordCloud(
    background_color='white', max_words=2000, font_path=font_path, mask=alice_mask, stopwords=stopwords
)

wc = wc.generate(text)

## => ValueError: Only supported for TrueType fonts
!pip install --upgrade pip

!pip install --upgrade Pillow

0개의 댓글