question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] pip install tts fails

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:22 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pombearscommented, Oct 19, 2022

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

1reaction
pombearscommented, Oct 19, 2022

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installing issues - TTS (Text-to-Speech) - Mozilla Discourse
I'm in a conda environment and have run pip install -r ... Though when running python server/server.py -c server/conf.json I get the error...
Read more >
I don't understand why I can't install this pip package?
I'm trying to install TTS, but it's not allowing me to? Please help!! Python version is 3.8.10 // Linux version Ubuntu 20.04.3 LTS ......
Read more >
error: could not build wheels for tts, which is required to install ...
I am getting this error when trying to install Coqui TTS for my Python Project. C++ Build tools version 14 is already properly...
Read more >
pip's dependency resolver does not currently take into account ...
$ pip install TTS ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is ......
Read more >
Mozilla TTS Installation PEP 517 Error - Dirk.Net
pip install TTS. on Ubuntu 20.4, getting error. Could not build wheels for pyworld which use PEP 517 and cannot be installed directly....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found