Anubhav Singh
Anubhav Singh

Reputation: 8699

Failed to import WordCloud from wordcloud

I installed wordcloud package for my 64 bit windows 10 system with anaconda python 3.5
using python -m pip install D:\folder\wordcloud-1.5.0-cp35-cp35m-win_amd64.whl command.
It has been successfully installed.
But when I am trying to import from wordcloud import WordCloud,STOPWORDS, I am getting error.Please check this:

enter image description here

Has it something to do with the path of wordcloud-1.5.0-cp35-cp35m-win_amd64.whl file as I have placed it in some random folder?

Thank you in advance.

Upvotes: 0

Views: 4055

Answers (1)

The simplest way to trace the error is to import the package (which apparently works) with import wordcloud and then list all members of the package with help(wordcloud). Check if the version and functions match your expectations. Check if it also matches the documentation of your package.

I suspect that the name of the WordCloudclass was simply changed.

If you miss functions then your package is broken. If the version number is wrong then you downloaded an old package. Use the Anaconda Navigator that usually comes with Anaconda to reinstall the package. If you do not have the Navigator use whatever package manager you have.

Upvotes: 1

Related Questions