i am installing wordcloud using pip but i am unable to do that i am getting the following error

0 votes
Running setup.py install for wordcloud ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-d59ym4jh\\wordcloud\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-d59ym4jh\\wordcloud\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-sirl50wk\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python38\Include\wordcloud'
         cwd: C:\Users\hp\AppData\Local\Temp\pip-install-d59ym4jh\wordcloud\
    Complete output (26 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.8
    creating build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\tokenization.py -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\_version.py -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\__init__.py -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\__main__.py -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\stopwords -> build\lib.win-amd64-3.8\wordcloud
    copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.8\wordcloud
    UPDATING build\lib.win-amd64-3.8\wordcloud/_version.py
    set build\lib.win-amd64-3.8\wordcloud/_version.py to '1.6.0'
    running build_ext
    building 'wordcloud.query_integral_image' extension
    creating build\temp.win-amd64-3.8
    creating build\temp.win-amd64-3.8\Release
    creating build\temp.win-amd64-3.8\Release\wordcloud
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\python38\include -Ic:\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" /Tcwordcloud/query_integral_image.c /Fobuild\temp.win-amd64-3.8\Release\wordcloud/query_integral_image.obj
    query_integral_image.c
    c:\python38\include\pyconfig.h(206): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-d59ym4jh\\wordcloud\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-d59ym4jh\\wordcloud\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\hp\AppData\Local\Temp\pip-record-sirl50wk\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python38\Include\wordcloud' Check the logs for full command output.
Feb 20, 2020 in Python by Prajwala
• 120 points
33,624 views

Hey @prajwala,

How are you trying to install?

 pip install wordcloud 

Is this the way you are trying?

3 answers to this question.

+1 vote

word cloud is not supported for python version 3.7 & above

Sad but true !

If you need to know more about Cloud Computing, We recommend joining Cloud Computing Course today.

answered Apr 15, 2020 by anonymous
It works!! Thanks :)
thank you so much! :)
thank you! this works
Thank you very much it worked
Yesss...., it is worked for me
0 votes

Hi@Prajwala,

First check your pip and python version from cmd.

C:\Users\Nadeem Akhter>pip -V
pip 20.0.2 from C:\Users\Nadeem Akhter\anaconda3\lib\site-packages\pip (python 3.7)
C:\Users\Nadeem Akhter>python -V
Python 3.7.6

Then try to install wordcloud in your system.

C:\Users\Nadeem Akhter>pip install wordcloud
Collecting wordcloud
  Downloading wordcloud-1.6.0-cp37-cp37m-win_amd64.whl (153 kB)
     |████████████████████████████████| 153 kB 198 kB/s
Requirement already satisfied: pillow in c:\users\nadeem akhter\anaconda3\lib\site-packages (from wordcloud) (7.0.0)
Requirement already satisfied: numpy>=1.6.1 in c:\users\nadeem akhter\anaconda3\lib\site-packages (from wordcloud) (1.18.1)
Requirement already satisfied: matplotlib in c:\users\nadeem akhter\anaconda3\lib\site-packages (from wordcloud) (3.1.3)
Requirement already satisfied: cycler>=0.10 in c:\users\nadeem akhter\anaconda3\lib\site-packages (from matplotlib->wordcloud) (0.10.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\nadeem akhter\anaconda3\lib\site-packages (from matplotlib->wordcloud) (2.8.1)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\nadeem akhter\anaconda3\lib\site-packages (from matplotlib->wordcloud) (1.1.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\nadeem akhter\anaconda3\lib\site-packages (from matplotlib->wordcloud) (2.4.6)
Requirement already satisfied: six in c:\users\nadeem akhter\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib->wordcloud) (1.14.0)
Requirement already satisfied: setuptools in c:\users\nadeem akhter\anaconda3\lib\site-packages (from kiwisolver>=1.0.1->matplotlib->wordcloud) (45.2.0.post20200210)
Installing collected packages: wordcloud
Successfully installed wordcloud-1.6.0

C:\Users\Nadeem Akhter>python
Python 3.7.6 (default, Jan  8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32
Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated.  Libraries may fail to load.  To activate this environment
please see https://conda.io/activation
Type "help", "copyright", "credits" or "license" for more information.
>>> import wordcloud
>>>           

It worked for me.

To know more about Cloud, Its recommended to join Google Cloud training today.

Thanks!

answered Apr 15, 2020 by MD
• 95,460 points
Thank you so much, worked for me too...!!
0 votes

Hi @ Prajwala 

All the members here, I got the same error while working with Windows 10 with python 3.5 Anaconda

Wordcloud fails to install with pip under Windows 10 Python 3.5 Anaconda 
> pip install wordcloud

Failed building wheel for wordcloud
Failed to build wordcloud
Installing collected packages: wordcloud
Running setup.py install for wordcloud
Complete output from command C:\Anaconda3\python.exe -c "import setuptools, tokenize;file='C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\vaast\AppData\Local\Temp\pip-lonpl8b1-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
running build_ext
building 'wordcloud.query_integral_image' extension
error: Unable to find vcvarsall.bat

----------------------------------------

Command "C:\Anaconda3\python.exe -c "import setuptools, tokenize;file='C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\vaast\AppData\Local\Temp\pip-lonpl8b1-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud

Can anyone help me with this?

answered Sep 14, 2020 by Richa sharma
Hey!! Did you get the solution ..I'm facing same errors while installing wordcloud...could you please help me out

Related Questions In Python

0 votes
0 answers

I am trying to install PyBase64 on my python 3.8. But I end up with the following error:

$ pip install pybase ERROR: Could not find ...READ MORE

Mar 24, 2020 in Python by Nishant
• 210 points
3,157 views
0 votes
1 answer

I am trying to install os-win on my python 3.8. But I end up with the following error:

I have the same issue and is ...READ MORE

answered Sep 6, 2020 in Python by anonymous
8,336 views
0 votes
1 answer
+1 vote
1 answer
0 votes
1 answer

I am trying to install visualize on my python 3.8 but i end up with the followinf error.

Hi@Avinash, I think the module name is visualization ...READ MORE

answered Apr 27, 2020 in Python by MD
• 95,460 points
1,686 views
+1 vote
3 answers
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP