amueller / word_cloud

A little word cloud generator in Python
https://amueller.github.io/word_cloud
MIT License
10.1k stars 2.31k forks source link

Error on installation #727

Closed gdhpearson closed 1 year ago

gdhpearson commented 1 year ago

Description

Seems to be similar to this closed issues. Installation of wordcloud runs into an error.

I am using Python 3.11 on Windows 10.

Steps/Code to Reproduce

Example:

Collecting wordcloud
  Using cached wordcloud-1.9.1.1.tar.gz (222 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.6.1 in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from wordcloud) (1.24.3)
Requirement already satisfied: pillow in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from wordcloud) (9.5.0)
Requirement already satisfied: matplotlib in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from wordcloud) (3.7.1)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (1.0.7)
Requirement already satisfied: cycler>=0.10 in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (4.39.4)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (1.4.4)
Requirement already satisfied: packaging>=20.0 in c:\users\username\appdata\roaming\python\python311\site-packages (from matplotlib->wordcloud) (23.1)
Requirement already satisfied: pyparsing>=2.3.1 in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (3.0.9)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\username\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->wordcloud) (2.8.2)
Requirement already satisfied: six>=1.5 in c:\users\username\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
  ╰─> [22 lines of output]
      running install
      C:\Users\username\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
hint: See above for output from the failure.

Expected Results

Should install without errors.

Versions

Windows-10-10.0.22621-SP0
Python 3.11.3 (tags/v3.11.3:f3909b8, Apr  4 2023, 23:49:59) [MSC v.1934 64 bit (AMD64)]
NumPy 1.24.3
matplotlib 3.7.1
amueller commented 1 year ago

required some more fixes, should be good now!