【问题标题】:Wordcloud in Python on WindowsWindows 上 Python 中的 Wordcloud
【发布时间】:2016-08-17 16:37:35
【问题描述】:

我正在尝试在 Windows 上运行的 Python 中创建 Wordclouds。我已经尝试了以下软件包,但它们似乎对我不起作用:

  • A Mueller 的 Wordcloud - Windows 安装程序似乎损坏,我无法安装。似乎在 Linux 和 Mac OS 上运行良好。我的要求是专门针对 Windows 的。
  • 我参考了这篇帖子How to create a word cloud from a corpus in Python?,但同样的问题仍然存在,因为他们都在使用 Wordcloud 包,而且它似乎没有安装在 Windows 上。
  • pywordcloud - 不知道如何使用它。似乎找不到任何有关它的文档。任何帮助将不胜感激。
  • pytagcloud - 似乎挂断了大量文本。但是,我的感觉是我没有正确使用它。任何正确方向的帮助将不胜感激。

如果有人能指出正确的方向,我将不胜感激。

【问题讨论】:

  • 分享您编写的代码或详细解释您是如何安装 wordcloud 包的。

标签: python windows word-cloud pytagcloud


【解决方案1】:

您可以使用 A Mueller 的 wordcloud 库。从https://github.com/amueller/word_cloud 下载文件夹,然后使用

安装Wordcloud

python setup.py build_ext -i

然后运行

python setup.py 安装

更多信息你可以在这里https://github.com/amueller/word_cloud/issues/125

【讨论】:

    猜你喜欢
    • 2017-06-30
    • 1970-01-01
    • 2017-08-19
    • 1970-01-01
    • 1970-01-01
    • 2021-11-14
    • 2017-05-15
    • 1970-01-01
    • 2022-01-09
    相关资源
    最近更新 更多