TTS: [Bug] pip install tts fails

pip install tts failing on Windows

On Windows, running “pip install tts” fails with below errors in output:

Building wheels for collected packages: tts Building wheel for tts (pyproject.toml) … error error: subprocess-exited-with-error

× Building wheel for tts (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [1203 lines of output]

building ‘TTS.tts.utils.monotonic_align.core’ 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 tts Failed to build tts ERROR: Could not build wheels for tts, which is required to install pyproject.toml-based projects

Full pip install output: full-pip-output.txt

I already have the following installed on my machine, so looks like the above error may be misleading? Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.31.31103 Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.30.30704

Attempts made to resolve issue:

  • Downloaded and installed the Microsoft C++ Build Tools
  • Using Visual Studio Installer (gets installed from previous step), installed Visual Studio Community 2022
  • In Visual Studio Installer, added Workload “Desktop Development with C++”

I’m now getting error:

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 tts Building wheel for pyworld (setup.py) … error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [12 lines of output] C:\Users\anthony\AppData\Roaming\Python\Python310\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated ‘description-file’ will not be supported in future versions. Please use the underscore name ‘description_file’ instead warnings.warn( running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\pyworld copying pyworld_init_.py -> build\lib.win-amd64-cpython-310\pyworld running build_ext building ‘pyworld.pyworld’ 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 pyworld Running setup.py clean for pyworld Failed to build tts pyworld ERROR: Could not build wheels for tts, which is required to install pyproject.toml-based projects


To Reproduce

Open command prompt Type and enter: pip install tts

Expected behavior

TTS should install without error

Logs

No response

Environment

Windows 10 (Version 21H2 - OS Build 19044.2130)
Python 3.10.6
PIP version 22.2.2

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (10 by maintainers)

Most upvoted comments

No not yet. I will definitely give that a go. Thanks very much for the help Vuizur. Almost here

Using “>=3.9,❤️.11” now and it’s download packages

Hi Thorsten

Thanks very much for this. From googling around I wonder if it’s a case of needing to run it in a virtual environment running Python 3.8 rather than my default 3.10. I will give that link a try and see how I go.