Create a word cloud on linux command-line

7

I'd like to create a word cloud on the linux command-line, similar to wordle and similar services. How can I do that? I have plain-text files and I'd like to create a word-cloud for each one.

Dan Stowell

Posted 2014-08-18T10:38:44.050

Reputation: 545

Answers

11

See this word cloud generator written in Python:

https://github.com/amueller/word_cloud

It can be easily installed with pip using this command:

pip install wordcloud

toolleeo

Posted 2014-08-18T10:38:44.050

Reputation: 134

2Please add some content instead of just posting links – Gaurav Joseph – 2015-01-16T03:35:53.093

I had to use sudo pip install wordcloud. From there, wordcloud_cli.py worked from the command line. Thanks for the answer. – 6005 – 2017-09-26T17:33:03.847

@6005 pip install --user wordcloud will work fine, if you also update your PATH variable to include $HOME/.local/bin (on Linux) or $HOME/Library/Python/X.Y/bin (on Mac), where X.Y are the major and minor versions of your Python version (check with python -V). Here is a guide for adding a directory to the PATH environment variable on a Mac; "Method #1" works for Linux, too.

– TheDudeAbides – 2019-10-25T03:24:20.000