How to install WordCloud in JypyterLab

#1

!pip install wordcloud
from wordcloud import WordCloud,STOPWORDS

Tried command above in JupyterLab. Got error as follows:

ImportError Traceback (most recent call last)
in
1 get_ipython().system(‘pip install wordcloud’)
----> 2 from wordcloud import WordCloud,STOPWORDS

ImportError: No module named ‘wordcloud’

#2

You’re using the wrong pip, try %pip instead.

More at https://nbviewer.jupyter.org/github/jhermann/jupyter-by-example/blob/master/setup/configuration.ipynb#Embedded-Dependency-Installation