Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordcloud fails to install with pip under Windows 10 Python 3.5 Anaconda #134

Closed
vaastav opened this issue Mar 10, 2016 · 55 comments
Closed

Comments

@vaastav
Copy link
Contributor

vaastav commented Mar 10, 2016

> pip install wordcloud

Collecting wordcloud
Using cached wordcloud-1.2.1.tar.gz
Building wheels for collected packages: wordcloud
Running setup.py bdist_wheel for wordcloud
Complete output from command C:\Anaconda3\python.exe -c "import setuptools;file='C:\Users\vaast\AppData\Local\Temp\pip-build-xepnqb1f\wordcloud\setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d C:\Users\vaast\AppData\Local\Temp\tmp5d658m49pip-wheel-:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud__init__.py -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.5\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.5\wordcloud
running build_ext
building 'wordcloud.query_integral_image' extension
error: Unable to find vcvarsall.bat


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

@amueller
Copy link
Owner

This is an issue of compiling cython code with visual studio. Do you have visual studio installed? I'm not very familiar with it.

@vaastav
Copy link
Contributor Author

vaastav commented Mar 10, 2016

@amueller I actually do have it installed which is why I am finding it weird. Maybe it is some configuration issue? Are there any plans of you making a conda package for this. Will make installing it way more easier.

@amueller
Copy link
Owner

any help would be welcome ;) I'm currently pretty busy.

@vaastav
Copy link
Contributor Author

vaastav commented Mar 10, 2016

Cool cool! Ill start working on it then :)

@vaastav
Copy link
Contributor Author

vaastav commented Mar 13, 2016

So I successfully built a conda package. Should I add it to conda-recipes or should I open a Pull Request here? I personally think adding it here will be a bit more simpler

@amueller
Copy link
Owner

yeah that sounds good. Sorry but I'm travelling and very busy right now.

@ps1946
Copy link

ps1946 commented Jun 22, 2016

I have exactly the same problem. Windows 10, Anaconda 3, Python 3.5
Apparently installation fails when it tries to compile an extension module and for some reason does not find vcvarsall.bat, although that .bat file is perfectly there and with the correct environment variables set.

@iturki
Copy link

iturki commented Jun 23, 2016

Was this solved? I have the same error. Windows 7 Python 3.5

@iturki
Copy link

iturki commented Jun 23, 2016

Ok. I solved my issue using wheels. Here are the steps:

  • Download the .whl file compatible with your Python version and your windows distribution (32bit or 64bit) from here
  • cd to the file path
  • Run this command python -m pip install <filename>

This installed worcloud 1.2.1. I tried the simple example and it worked.

@edvbb
Copy link

edvbb commented Jul 19, 2016

Hi!
I have this mistake

Command "c:\users\edward\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Edward\AppData\Local\Temp\pip-build-2d2vuafp\wordcloud\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record C:\Users\Edward\AppData\Local\Temp\pip-o05ujb8m-record\install-record.txt --single-version-externally-managed --compile" *failed with error code 1 in C:\Users\Edward\AppData\Local\Temp\pip-build-2d2vuafp\wordcloud*

please help to improve

P.S. sorry i've made))))

@amueller
Copy link
Owner

@edvbb you need to include the traceback.

@nihil0
Copy link

nihil0 commented Jan 16, 2017

@iturki , this worked for me. Windows 10, Anaconda 4.2.0, Python 3.5.2

@Arko2016
Copy link

In the Anaconda prompt, enter:
conda install -c https://conda.anaconda.org/conda-forge wordcloud

After this, start python shell, and try to import the wordcloud module. It should be imported successfully

@hemanthappala
Copy link

Thanks iturki your solution has sloved my problem of importing wordcloud

@shaoeChen
Copy link

@iturki thsnks your solution sloved my problem too!

@vijaykumar247
Copy link

@iturki thank you so much

@MikeSparling
Copy link

@iturki I'll echo everyone else... thank you! Worked.

@amueller
Copy link
Owner

Btw, I added this to the readme. If it's not clear, please let me know. I'm also trying to upload a Windows wheel to pip but it's been a bit tricky.

@anandsravi2006
Copy link

whle installing wordcloud from below, getting this error

wordcloud-1.3.2-cp36-cp36m-win_amd64.whl is not a supported wheel on this platform

environment : windows 10, Python 2.7, Anaconda 5.1

@condavjv
Copy link

Hi:

I'm trying to install wordcloud package in the anaconda prompt and I get this error:
(base) C:\Users\varun>conda install -c https://conda.anaconda.org/amueller wordcloud
Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • wordcloud

Current channels:

(base) C:\Users\varun>pip install wordcloud
Collecting wordcloud
Using cached wordcloud-1.3.1.tar.gz
Requirement already satisfied: matplotlib in c:\users\varun\anaconda3\lib\site-packages (from wordcloud)
Requirement already satisfied: numpy>=1.6.1 in c:\users\varun\anaconda3\lib\site-packages (from wordcloud)
Requirement already satisfied: pillow in c:\users\varun\anaconda3\lib\site-packages (from wordcloud)
Requirement already satisfied: six>=1.10 in c:\users\varun\anaconda3\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: python-dateutil>=2.0 in c:\users\varun\anaconda3\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: pytz in c:\users\varun\anaconda3\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: cycler>=0.10 in c:\users\varun\anaconda3\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\users\varun\anaconda3\lib\site-packages (from matplotlib->wordcloud)
Requirement already satisfied: olefile in c:\users\varun\anaconda3\lib\site-packages (from pillow->wordcloud)
Building wheels for collected packages: wordcloud
Running setup.py bdist_wheel for wordcloud ... error
Complete output from command C:\Users\varun\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\varun\AppData\Local\Temp\pip-build-l3kw950e\wordcloud\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\varun\AppData\Local\Temp\tmpyfaw89uwpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud_init_.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.6\wordcloud
running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools


Failed building wheel for wordcloud
Running setup.py clean for wordcloud
Failed to build wordcloud
Installing collected packages: wordcloud
Running setup.py install for wordcloud ... error
Complete output from command C:\Users\varun\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\varun\AppData\Local\Temp\pip-build-l3kw950e\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\varun\AppData\Local\Temp\pip-zmbt8rcs-record\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud_init_.py -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.6\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.6\wordcloud
running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

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

Command "C:\Users\varun\Anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\varun\AppData\Local\Temp\pip-build-l3kw950e\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\varun\AppData\Local\Temp\pip-zmbt8rcs-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\varun\AppData\Local\Temp\pip-build-l3kw950e\wordcloud\

Please suggest.

@condavjv
Copy link

Installing visual studio will take 4 GB of space. Is there an alternative?

@amueller
Copy link
Owner

use the package provided by gohlke that's mentioned in the readme.

@condavjv
Copy link

@amueller Thank you bud. Well, installing the 'Microsoft Visual C++ Build tools' solved errors around wordcloud, feedparser and vaderSentiment.

@leduyloc
Copy link

@iturki work perfect for me :D

@rajbuk
Copy link

rajbuk commented Feb 22, 2018

Installing Visual C++ fixed the problem for me. http://landinghub.visualstudio.com/visual-cpp-build-tools

@iuspearman
Copy link

iuspearman commented Mar 4, 2018

@iturki solution worked, may be a super noob but file name does not have carrots around it for anyone else struggling to make it work. conda 4.6, python 3.6, 64 bit

@amueller
Copy link
Owner

I recommend using the conda forge channel.

@sandeepsanyo
Copy link

Hey guys, I am trying to run the code to make a wordcloud. Every time I am using the command
import wordcloud, it gives me the following error

ImportErrorTraceback (most recent call last)
in ()
----> 1 from wordcloud import WordCloud, STOPWORDS
2 stopwords = set(STOPWORDS)
3
4 def show_wordcloud(data, title = None):
5 wordcloud = WordCloud(

C:\Users\sanyo\Anaconda2\lib\site-packages\wordcloud_init_.py in ()
----> 1 from .wordcloud import (WordCloud, STOPWORDS, random_color_func,
2 get_single_color_func)
3 from .color_from_image import ImageColorGenerator
4
5 all = ['WordCloud', 'STOPWORDS', 'random_color_func',

C:\Users\sanyo\Anaconda2\lib\site-packages\wordcloud\wordcloud.py in ()
17 from operator import itemgetter
18
---> 19 from PIL import Image
20 from PIL import ImageColor
21 from PIL import ImageDraw

C:\Users\sanyo\Anaconda2\lib\site-packages\PIL\Image.py in ()
54 # Also note that Image.core is not a publicly documented interface,
55 # and should be considered private and subject to change.
---> 56 from . import _imaging as core
57 if PILLOW_VERSION != getattr(core, 'PILLOW_VERSION', None):
58 raise ImportError("The _imaging extension was built for another "

ImportError: DLL load failed: The specified module could not be found.

Can anybody please help?

@amueller
Copy link
Owner

@sandeepsanyo see #356

@shakhawatnwpu
Copy link

Can anyone help me to solve this? I am trying to install wordcloud in Pycharm. Thanks

Collecting wordcloud
Using cached https://files.pythonhosted.org/packages/bc/e8/cab8479b25297b3847cfb55e85a5014e8c53b80e513eaf1ba58c7b3a6acd/wordcloud-1.4.1.tar.gz
Requirement already satisfied: matplotlib in e:\pycharm project\venv\lib\site-packages (from wordcloud) (2.2.2)
Requirement already satisfied: numpy>=1.6.1 in e:\pycharm project\venv\lib\site-packages (from wordcloud) (1.14.3)
Requirement already satisfied: pillow in e:\pycharm project\venv\lib\site-packages (from wordcloud) (5.1.0)
Requirement already satisfied: cycler>=0.10 in e:\pycharm project\venv\lib\site-packages (from matplotlib->wordcloud) (0.10.0)
Requirement already satisfied: pytz in e:\pycharm project\venv\lib\site-packages (from matplotlib->wordcloud) (2018.4)
Requirement already satisfied: six>=1.10 in e:\pycharm project\venv\lib\site-packages (from matplotlib->wordcloud) (1.11.0)
Requirement already satisfied: kiwisolver>=1.0.1 in e:\pycharm project\venv\lib\site-packages (from matplotlib->wordcloud) (1.0.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in e:\pycharm project\venv\lib\site-packages (from matplotlib->wordcloud) (2.2.0)
Requirement already satisfied: python-dateutil>=2.1 in e:\pycharm project\venv\lib\site-packages (from matplotlib->wordcloud) (2.7.3)
Requirement already satisfied: setuptools in e:\pycharm project\venv\lib\site-packages (from kiwisolver>=1.0.1->matplotlib->wordcloud) (39.2.0)
Installing collected packages: wordcloud
Running setup.py install for wordcloud: started
Running setup.py install for wordcloud: finished with status 'error'
Complete output from command "E:\Pycharm Project\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\FraNk\AppData\Local\Temp\pycharm-packaging\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\FraNk\AppData\Local\Temp\pip-record-pb2h3spv\install-record.txt --single-version-externally-managed --compile --install-headers "E:\Pycharm Project\venv\include\site\python3.6\wordcloud":
running install
running build
running build_py
creating build
creating build\lib.win32-3.6
creating build\lib.win32-3.6\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win32-3.6\wordcloud
copying wordcloud\tokenization.py -> build\lib.win32-3.6\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win32-3.6\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win32-3.6\wordcloud
copying wordcloud_init_.py -> build\lib.win32-3.6\wordcloud
copying wordcloud\stopwords -> build\lib.win32-3.6\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win32-3.6\wordcloud
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

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

Command ""E:\Pycharm Project\venv\Scripts\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\FraNk\AppData\Local\Temp\pycharm-packaging\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\FraNk\AppData\Local\Temp\pip-record-pb2h3spv\install-record.txt --single-version-externally-managed --compile --install-headers "E:\Pycharm Project\venv\include\site\python3.6\wordcloud"" failed with error code 1 in C:\Users\FraNk\AppData\Local\Temp\pycharm-packaging\wordcloud\

@amueller
Copy link
Owner

I recommend you install using conda instead as described in the readme: https://github.com/amueller/word_cloud

@iuspearman
Copy link

iuspearman commented May 28, 2018 via email

@ievsantillan
Copy link

@Arko2016 this worked for me, thank you!

@ghost
Copy link

ghost commented Jul 31, 2018

I am getting an error: "error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools"

I have Microsoft Visual Studio Build Tools 2015 installed, along with the Visual Studio Code IDE. It's my understanding that Microsoft Visual Studio Build Tools 2015 includes Microsoft Visual C++ 14.0.

@amueller
Copy link
Owner

@Amuchastegui how are you trying to install?

@ghost
Copy link

ghost commented Jul 31, 2018 via email

@jcfr
Copy link
Collaborator

jcfr commented Jul 31, 2018

@Amuchastegui Windows wheel have just been released. Let us know if you still have issues.

@ghost
Copy link

ghost commented Jul 31, 2018

It's working now, thanks!

@pavangaykwad
Copy link

C:\Users\admin\AppData\Local\Programs\Python\Python38-32\Scripts>pip install wordcloud
Collecting wordcloud
Using cached wordcloud-1.6.0.tar.gz (214 kB)
Requirement already satisfied: numpy>=1.6.1 in c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages (from wordcloud) (1.18.1)
Requirement already satisfied: pillow in c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages (from wordcloud) (7.0.0)
Requirement already satisfied: matplotlib in c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages (from wordcloud) (3.1.3)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages (from matplotlib->wordcloud) (2.8.1)
Requirement already satisfied: cycler>=0.10 in c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages (from matplotlib->wordcloud) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\appdata\local\programs\python\python38-32\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\admin\appdata\local\programs\python\python38-32\lib\site-packages (from matplotlib->wordcloud) (2.4.6)
Requirement already satisfied: six>=1.5 in c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages (from python-dateutil>=2.1->matplotlib->wordcloud) (1.14.0)
Requirement already satisfied: setuptools in c:\users\admin\appdata\local\programs\python\python38-32\lib\site-packages (from kiwisolver>=1.0.1->matplotlib->wordcloud) (41.2.0)
Installing collected packages: wordcloud
Running setup.py install for wordcloud ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\admin\AppData\Local\Temp\pip-install-moqw0r27\wordcloud\setup.py'"'"'; file='"'"'C:\Users\admin\AppData\Local\Temp\pip-install-moqw0r27\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\admin\AppData\Local\Temp\pip-record-8g3ys1wn\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python38-32\Include\wordcloud'
cwd: C:\Users\admin\AppData\Local\Temp\pip-install-moqw0r27\wordcloud
Complete output (20 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win32-3.8\wordcloud
copying wordcloud\tokenization.py -> build\lib.win32-3.8\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win32-3.8\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win32-3.8\wordcloud
copying wordcloud_version.py -> build\lib.win32-3.8\wordcloud
copying wordcloud_init_.py -> build\lib.win32-3.8\wordcloud
copying wordcloud_main_.py -> build\lib.win32-3.8\wordcloud
copying wordcloud\stopwords -> build\lib.win32-3.8\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win32-3.8\wordcloud
UPDATING build\lib.win32-3.8\wordcloud/_version.py
set build\lib.win32-3.8\wordcloud/_version.py to '1.6.0'
running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\admin\AppData\Local\Temp\pip-install-moqw0r27\wordcloud\setup.py'"'"'; file='"'"'C:\Users\admin\AppData\Local\Temp\pip-install-moqw0r27\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\admin\AppData\Local\Temp\pip-record-8g3ys1wn\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python38-32\Include\wordcloud' Check the logs for full command output.

@pavangaykwad
Copy link

can you hlep the slove issue

@nihil0
Copy link

nihil0 commented Mar 5, 2020

Have you tried this? #134 (comment)

The error log clearly describes what went wrong. You need a C++ compiler which wasn't found. It's easier to just install directly from the wheel file.

@amueller
Copy link
Owner

amueller commented Mar 5, 2020

If pip doesn't install the wheel, it's probably because you're using 32bit Python. I would suggest using 64bit python for which there is a wheel.

@pavangaykwad
Copy link

pavangaykwad commented Mar 6, 2020 via email

@deepakbhavsar43
Copy link

Ok. I solved my issue using wheels. Here are the steps:

  • Download the .whl file compatible with your Python version and your windows distribution (32bit or 64bit) from here
  • cd to the file path
  • Run this command python -m pip install <filename>

This installed worcloud 1.2.1. I tried the simple example and it worked.

Hi,

I tried this but it did not worked for me

@amueller
Copy link
Owner

With 64 bit python "pip install wordcloud" should work. If not, please open a new issue.

@sudhirrajgowda
Copy link

Ok. I solved my issue using wheels. Here are the steps:

  • Download the .whl file compatible with your Python version and your windows distribution (32bit or 64bit) from here
  • cd to the file path
  • Run this command python -m pip install <filename>

This installed worcloud 1.2.1. I tried the simple example and it worked.

Hi,

I tried this but it did not worked for me

worked for me, thanks

@Henry-Lu96
Copy link

Have you tried this? #134 (comment)

The error log clearly describes what went wrong. You need a C++ compiler which wasn't found. It's easier to just install directly from the wheel file.

My question isnt solved with a c++compiler

@poojakhodke
Copy link

PS C:\Code> pip3 install wordcloud
Collecting wordcloud
Using cached wordcloud-1.8.1.tar.gz (220 kB)
Requirement already satisfied: numpy>=1.6.1 in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages (from wordcloud) (1.20.1)
Requirement already satisfied: pillow in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages (from wordcloud) (8.1.0)
Requirement already satisfied: matplotlib in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages (from wordcloud) (3.3.4)
Requirement already satisfied: cycler>=0.10 in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->wordcloud) (0.10.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->wordcloud) (1.3.1)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages
(from matplotlib->wordcloud) (2.8.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\users\admin\appdata\local\programs\python\python39\lib\site-packages (from matplotlib->wordcloud) (2.4.7)
Requirement already satisfied: six in c:\users\admin\appdata\roaming\python\python39\site-packages (from cycler>=0.10->matplotlib->wordcloud) (1.15.0)
Using legacy 'setup.py install' for wordcloud, since package 'wheel' is not installed.
Installing collected packages: wordcloud
Running setup.py install for wordcloud ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\admin\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\admin\AppData\Local\Temp\pip-install-ldy7mft1\wordcloud_c612ff134d6a4ba7b9df21277c7eedb4\setup.py'"'"'; file='"'"'C:\Users\admin\AppData\Local\Temp\pip-install-ldy7mft1\wordcloud_c612ff134d6a4ba7b9df21277c7eedb4\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\admin\AppData\Local\Temp\pip-record-el_t3679\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python39\Include\wordcloud'
cwd: C:\Users\admin\AppData\Local\Temp\pip-install-ldy7mft1\wordcloud_c612ff134d6a4ba7b9df21277c7eedb4
Complete output (20 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_version.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_init_.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud_main_.py -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud
UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py
set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1'
running build_ext
building 'wordcloud.query_integral_image' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\admin\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\admin\AppData\Local\Temp\pip-install-ldy7mft1\wordcloud_c612ff134d6a4ba7b9df21277c7eedb4\setup.py'"'"'; file='"'"'C:\Users\admin\AppData\Local\Temp\pip-install-ldy7mft1\wordcloud_c612ff134d6a4ba7b9df21277c7eedb4\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\admin\AppData\Local\Temp\pip-record-el_t3679\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\admin\appdata\local\programs\python\python39\Include\wordcloud' Check the logs for full command output.

@poojakhodke
Copy link

what should i do

@amueller
Copy link
Owner

@poojakhodke see #614.

@Cirediallo
Copy link

Cirediallo commented Feb 4, 2022

Hi,
this post is closed but I can relate. I have the same error of the creator of this issue but I tried @iturki 's solution but it is not working for me. It is showing
ERROR: wordcloud-1.8.1-pp37-pypy37_pp73-win_amd64.whl is not a supported wheel on this platform
and the error when using pip (in case) is:
Running setup.py install for wordcloud ... error ERROR: Command errored out with exit status 1: command: 'C:\Users\PATH\TO\DIRECTORY\env\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Mamadou\\AppData\\Local\\Temp\\pip-install-dyeyk8xa\\wordcloud_525cc3fd5de44024a4d590b5a58566f6\\setup.py'"'"'; __file__='"'"'C:\\Users\\Mamadou\\AppData\\Local\\Temp\\pip-install-dyeyk8xa\\wordcloud_525cc3fd5de44024a4d590b5a58566f6\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Mamadou\AppData\Local\Temp\pip-record-ym1dvj2_\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\PATH\TO\DIRECTORY\env\include\site\python3.9\wordcloud' cwd: C:\Users\Mamadou\AppData\Local\Temp\pip-install-dyeyk8xa\wordcloud_525cc3fd5de44024a4d590b5a58566f6\ Complete output (20 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.9 creating build\lib.win-amd64-3.9\wordcloud copying wordcloud\color_from_image.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\tokenization.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\wordcloud.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\_version.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\__init__.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\__main__.py -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\stopwords -> build\lib.win-amd64-3.9\wordcloud copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-3.9\wordcloud UPDATING build\lib.win-amd64-3.9\wordcloud/_version.py set build\lib.win-amd64-3.9\wordcloud/_version.py to '1.8.1' running build_ext building 'wordcloud.query_integral_image' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/ ---------------------------------------- ERROR: Command errored out with exit status 1: 'C:\Users\PATH\TO\DIRECTORY\env\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Mamadou\\AppData\\Local\\Temp\\pip-install-dyeyk8xa\\wordcloud_525cc3fd5de44024a4d590b5a58566f6\\setup.py'"'"'; __file__='"'"'C:\\Users\\Mamadou\\AppData\\Local\\Temp\\pip-install-dyeyk8xa\\wordcloud_525cc3fd5de44024a4d590b5a58566f6\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Mamadou\AppData\Local\Temp\pip-record-ym1dvj2_\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\PATH\TO\DIRECTORY\env\include\site\python3.9\wordcloud' Check the logs for full command output.

Note: I've dowload the build tools

@raveenaclr
Copy link

In the Anaconda prompt, enter: conda install -c https://conda.anaconda.org/conda-forge wordcloud

After this, start python shell, and try to import the wordcloud module. It should be imported successfully

Thanks a lot. This helped.

@ShamZee
Copy link

ShamZee commented Mar 26, 2022

use this command it worked for me
................................................................................
conda install -c conda-forge wordcloud
...............................................................................

@kalyani096
Copy link

Team Github,
I have faced an issue while installing the word cloud on the python platform, but after trying this the problem got resolved such as

python -m pip install wordcloud
conda install -c conda -forge wordcloud
conda install -c conda-forge implicit

after installing this the problem got rectified and solved legacy errors and build tools visuall c++ errors at python prompt.

This solution works for me a lot after installing the MicrosoftVisual c++ build tools got greatly worked a lot to install word cloud and the stopwords process at Python prompt, Great.
after installing these errors got cleared along with legacy sys errors and build tool errors too.
Thank you.

have a lovely day, Great work done.

Regards,
Kalyani
data scientist
ML Engineer
Accenture

@amueller
Copy link
Owner

amueller commented Jun 1, 2023

installing a wheel with pip install wordcloud should work again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests