Installation results in building wheel, which fails because of missing Microsoft C++ Build Tools.
This report is done according to README (If there are no wheels available for your version of python, installing the package requires having a C compiler set up. Before installing a compiler, report an issue describing the version of python and operating system being used.)
Python version: 3.11.1
Windows version: Win 10 Pro, Version 21H2
wordcloud version: 1.8.2.2
Steps/Code to Reproduce
PS C:> python -V
Python 3.11.1
PS C:> pip install wordcloud
Collecting wordcloud
Using cached wordcloud-1.8.2.2.tar.gz (220 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.6.1 in c:\users\hendonk\python3\lib\site-packages (from wordcloud) (1.23.5)
Requirement already satisfied: pillow in c:\users\hendonk\python3\lib\site-packages (from wordcloud) (9.3.0)
Requirement already satisfied: matplotlib in c:\users\hendonk\python3\lib\site-packages (from wordcloud) (3.6.2)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (1.0.6)
Requirement already satisfied: cycler>=0.10 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (4.38.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (1.4.4)
Requirement already satisfied: packaging>=20.0 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (22.0)
Requirement already satisfied: pyparsing>=2.2.1 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (2.8.2)
Requirement already satisfied: six>=1.5 in c:\users\hendonk\python3\lib\site-packages (from python-dateutil>=2.7->matplotlib->wordcloud) (1.16.0)
Building wheels for collected packages: wordcloud
Building wheel for wordcloud (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud_version.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud__init.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\main__.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-cpython-311\wordcloud
UPDATING build\lib.win-amd64-cpython-311\wordcloud/_version.py
set build\lib.win-amd64-cpython-311\wordcloud/_version.py to '1.8.2.2'
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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: 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
error: subprocess-exited-with-error
× Running setup.py install for wordcloud did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
running install
C:\users\hendonk\Python3\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-311
creating build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\color_from_image.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\tokenization.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\wordcloud.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud_version.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud__init.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\main__.py -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\stopwords -> build\lib.win-amd64-cpython-311\wordcloud
copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-cpython-311\wordcloud
UPDATING build\lib.win-amd64-cpython-311\wordcloud/_version.py
set build\lib.win-amd64-cpython-311\wordcloud/_version.py to '1.8.2.2'
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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> wordcloud
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Expected Results
Pip using wheel for installation, C compiler not necessary.
Actual Results
Wheel not found on PyPi, installation resorts to building wheel, fails because of missing C compiler.
Description
Installation results in building wheel, which fails because of missing Microsoft C++ Build Tools.
This report is done according to README (If there are no wheels available for your version of python, installing the package requires having a C compiler set up. Before installing a compiler, report an issue describing the version of python and operating system being used.)
Python version: 3.11.1 Windows version: Win 10 Pro, Version 21H2 wordcloud version: 1.8.2.2
Steps/Code to Reproduce
PS C:> python -V Python 3.11.1
PS C:> pip install wordcloud Collecting wordcloud Using cached wordcloud-1.8.2.2.tar.gz (220 kB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy>=1.6.1 in c:\users\hendonk\python3\lib\site-packages (from wordcloud) (1.23.5) Requirement already satisfied: pillow in c:\users\hendonk\python3\lib\site-packages (from wordcloud) (9.3.0) Requirement already satisfied: matplotlib in c:\users\hendonk\python3\lib\site-packages (from wordcloud) (3.6.2) Requirement already satisfied: contourpy>=1.0.1 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (1.0.6) Requirement already satisfied: cycler>=0.10 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (4.38.0) Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (1.4.4) Requirement already satisfied: packaging>=20.0 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (22.0) Requirement already satisfied: pyparsing>=2.2.1 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in c:\users\hendonk\python3\lib\site-packages (from matplotlib->wordcloud) (2.8.2) Requirement already satisfied: six>=1.5 in c:\users\hendonk\python3\lib\site-packages (from python-dateutil>=2.7->matplotlib->wordcloud) (1.16.0) Building wheels for collected packages: wordcloud Building wheel for wordcloud (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [20 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-311 creating build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\color_from_image.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\tokenization.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\wordcloud.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud_version.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud__init.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\main__.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\stopwords -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-cpython-311\wordcloud UPDATING build\lib.win-amd64-cpython-311\wordcloud/_version.py set build\lib.win-amd64-cpython-311\wordcloud/_version.py to '1.8.2.2' 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/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: 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 error: subprocess-exited-with-error
× Running setup.py install for wordcloud did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running install C:\users\hendonk\Python3\Lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build\lib.win-amd64-cpython-311 creating build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\color_from_image.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\tokenization.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\wordcloud.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\wordcloud_cli.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud_version.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud__init.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\main__.py -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\stopwords -> build\lib.win-amd64-cpython-311\wordcloud copying wordcloud\DroidSansMono.ttf -> build\lib.win-amd64-cpython-311\wordcloud UPDATING build\lib.win-amd64-cpython-311\wordcloud/_version.py set build\lib.win-amd64-cpython-311\wordcloud/_version.py to '1.8.2.2' 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/ [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> wordcloud
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.
Expected Results
Pip using wheel for installation, C compiler not necessary.
Actual Results
Wheel not found on PyPi, installation resorts to building wheel, fails because of missing C compiler.