C:\Users\asanok>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\asanok\appdata\local\programs\python\python311\lib\site-packages (from wordcloud) (1.24.2)
Requirement already satisfied: pillow in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from wordcloud) (9.4.0)
Requirement already satisfied: matplotlib in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from wordcloud) (3.7.1)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (1.0.7)
Requirement already satisfied: cycler>=0.10 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (4.39.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (1.4.4)
Requirement already satisfied: packaging>=20.0 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (23.0)
Requirement already satisfied: pyparsing>=2.3.1 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (2.8.2)
Requirement already satisfied: six>=1.5 in c:\users\asanok\appdata\local\programs\python\python311\lib\site-packages (from python-dateutil>=2.7->matplotlib->wordcloud) (1.16.0)
Installing collected packages: wordcloud
DEPRECATION: wordcloud is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
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
╰─> [28 lines of output]
running install
C:\Users\asanok\AppData\Local\Programs\Python\Python311\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
creating build\temp.win-amd64-cpython-311
creating build\temp.win-amd64-cpython-311\Release
creating build\temp.win-amd64-cpython-311\Release\wordcloud
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\asanok\AppData\Local\Programs\Python\Python311\include -IC:\Users\asanok\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22000.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22000.0\\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /Tcwordcloud/query_integral_image.c /Fobuild\temp.win-amd64-cpython-311\Release\wordcloud/query_integral_image.obj
query_integral_image.c
wordcloud/query_integral_image.c(196): fatal error C1083: include ファイルを開けません。'longintrepr.h':No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[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.
[notice] A new release of pip available: 22.3.1 -> 23.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip
C:\Users\asanok>