- 博客(2)
- 收藏
- 关注
原创 wordcloud中文乱码(中文不显示)
wordcloud直接读取中文文件,通常会显示乱码(如下图) 此时我们需要添加中文字体的ttc文件,方法如下: 在finder中找到中文字体的ttc文件,将该路径赋值给font_path即可 通常各操作系统的中文字体路径如下: mac: /System/Library/Fonts/Supplemental/Songti.ttc window: C:\WINDOWS\Fonts\中文字体.ttf linux: /usr/share/fonts ...
2021-07-20 01:00:14
2607
原创 安装wordcloud报错command ‘/usr/bin/gcc‘ failed with exit code 1
(1)pip install wordcloud 报错gcc: command ‘/usr/bin/gcc’ failed with exit code 1 (2)安装gcc 需要安装apple developer tools(Xcode),下载文件过大会卡住 (3)安装apple developer tools 去苹果developer网页,搜索xcode添加链接描述 选择command line tools for xcode (4)xocde安装需要更新mac系统至较新版本 App Store -&
2021-07-20 00:07:48
9037
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人