user3503711
user3503711

Reputation: 2066

Can't install wordcloud in python (Anaconda)

I am trying to install wordcloud in my python program. I am doing the following steps. Please tell me where i am doing wrong-

  1. I downloaded the wordcloud package from here https://github.com/amueller/word_cloud

  2. Copy and paste it in the Anaconda3 folder.

  3. Open Anaconda command prompt and give the following command "pip install wordcloud".

The following error is showing -

enter image description here

Please let me know what to do.

Upvotes: 5

Views: 47941

Answers (11)

Subodh Varane
Subodh Varane

Reputation: 1

Wordcloud installation problem : Note: If you are facing issues installing wordcloud on Windows10. The follow the below procedure.

Go to: https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud

Click on the matching whl file to download.

Naming: wordcloud-[version]-cp [python-version]-cp [python-version]-win [32bit-or-64bit].whl

Then below command in command prompt pip install <location_of_wordcloud_whl_file>

Example: pip install "C:\Users\Testuser\Desktop\wordcloud-1.6.0-cp38-cp38-win32.whl"

Upvotes: 0

dataninsight
dataninsight

Reputation: 1343

Installing wordcloud using Anaconda

Latest version of wordcloud : 1.8.1

Python version supporting wordcloud=1.8.1 : 2.7, 3.4, 3.5, 3.6 and 3.7

Installation of wordcloud using Anaconda, you can install from the conda-forge channel:

conda install -c conda-forge wordcloud

Upvotes: 0

pavitra
pavitra

Reputation: 189

There is a new version available now but this one worked for me

enter image description here

With Anaconda python 3.6

  • download from this link.
  • wordcloud 1.3.2‑cp36‑cp36m‑win_amd64.whl
  • Then don't extract the file, copy and paste the dir in cmd.
  • Use this command pip install wordcloud-1.3.2-cp36-cp36m-win_amd64.whl

Upvotes: 10

GDB
GDB

Reputation: 3579

You should have a virtual environment for each project or group of projects that use a particular set of packages. I use Anaconda. Jupyter should be installed in each of your virtual environments. Let's assume you've already created the environment foo. Then:

  • conda activate foo
  • conda install jupyter
  • conda install -c conda-forge wordcloud

Now when you do the import it should work. My import:

from wordcloud import WordCloud, STOPWORDS

I'm working through How to Generate a Word Cloud of Any Shape in Python

Upvotes: 0

GaneshKumar C
GaneshKumar C

Reputation: 1

After a long try:

1) Download the latest version of WordCloud from this link.

2) Copy it into the Script directory under Anaconda3.

3) Open the command prompt and do pip install wordcloud. (If a win[5] authorization error occurs, try doing pip from the admin command prompt or sudo pip install wordcloud.)

Upvotes: 0

Katharina Aryani
Katharina Aryani

Reputation: 21

Open JupyterLab from Anaconda dashboard, in terminal 1, run:

conda install -c conda-forge wordcloud 

Source: link

Upvotes: 2

RolandoAmir
RolandoAmir

Reputation: 29

I've got the similar error but related to certification, if the error is:

Caused by SSLError(SSLError("bad handshake: Error([(\'SSL routines\', \'ssl3_get_server_certificate\', \'certificate verify failed\')])",),))',),)

This other SO question helped me. It basically said to do:

conda config --set ssl_verify false

Upvotes: 0

shruti salian
shruti salian

Reputation: 1

I have python 3.6.3 installed on my windows system. I installed wordcloud package in python but faced the "wordcloud No Module Found" error on Anaconda Jupyter Notebook.

I tried most of the solutions posted here but nothing worked for me.

Finally I installed wordcloud package in the Scripts directory under Anacond3 directory in the command prompt using:

pip install wordcloud

This worked and I am able to import wordcloud on Jupyter now.

Upvotes: 0

Shrish Trivedi
Shrish Trivedi

Reputation: 309

Using Anaconda Python 3.6 version For Windows you can do it as:

  • Installation of wordcloud package
  • download wordcloud‑1.3.2‑cp36‑cp36m‑win_amd64.whl from
    http://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud
  • Copy the file to your current working directory
  • Open command prompt
  • python -m pip install wordcloud-1.3.2-cp36-cp36m-win_amd64.whl

Upvotes: 0

Rajan Kumar
Rajan Kumar

Reputation: 176

You can simply use conda package manager to install wordcloud, just run:

conda install -c https://conda.anaconda.org/conda-forge wordcloud

Upvotes: 16

Brian O&#39;Donnell
Brian O&#39;Donnell

Reputation: 1886

It is trying to build Word Cloud using Visual Studio. If you don't have it you can get a subset called "Microsoft Build Tools 2015" here: https://www.microsoft.com/en-us/download/details.aspx?id=48159

Even having a full version of Visual Studio 2015 and my path set up properly I still had trouble installing using pip. I also had no luck with the conda installer. The following worked for me:

  1. Go to http://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud and download the wheel for the version of Word Cloud you need.
  2. From the command prompt install using pip. For example, pip install wordcloud-1.2.1-cp27-cp27m-win_amd64.whl

Upvotes: 1

Related Questions