word_cloud: Wordcloud fails to install with pip under Windows 10 Python 3.5 Anaconda
> 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
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 55 (17 by maintainers)
Ok. I solved my issue using wheels. Here are the steps:
python -m pip install <filename>
This installed worcloud 1.2.1. I tried the simple example and it worked.
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
Was this solved? I have the same error. Windows 7 Python 3.5
use this command it worked for me … conda install -c conda-forge wordcloud …
Have you tried this? https://github.com/amueller/word_cloud/issues/134#issuecomment-228208102
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.