CorentinJ / Real-Time-Voice-Cloning

Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
51.65k stars 8.66k forks source link

webrtcvad wont install #1200

Open zamonster opened 1 year ago

zamonster commented 1 year ago

When I try to install webrtcvad with pip install webrtcvad it throws out

Collecting webrtcvad Using cached webrtcvad-2.0.10.tar.gz (66 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: webrtcvad Building wheel for webrtcvad (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [9 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-39 copying webrtcvad.py -> build\lib.win-amd64-cpython-39 running build_ext building '_webrtcvad' 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 webrtcvad Running setup.py clean for webrtcvad Failed to build webrtcvad Installing collected packages: webrtcvad Running setup.py install for webrtcvad ... error error: subprocess-exited-with-error

× Running setup.py install for webrtcvad did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running install X:\anaconda2\envs\voice-clone\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-39 copying webrtcvad.py -> build\lib.win-amd64-cpython-39 running build_ext building '_webrtcvad' 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. ╰─> webrtcvad

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

terminatormlp commented 1 year ago

install Microsoft Visual C++ 14.0 and theninstall webrtcvad

zamonster commented 1 year ago

I have installed the latest version, and older versions still get this error.

(base) C:\Users\ryanh\Desktop\Real-Time-Voice-Cloning-master>pip install webrtcvad Defaulting to user installation because normal site-packages is not writeable Collecting webrtcvad Using cached webrtcvad-2.0.10.tar.gz (66 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: webrtcvad Building wheel for webrtcvad (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [9 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 copying webrtcvad.py -> build\lib.win-amd64-cpython-310 running build_ext building '_webrtcvad' 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 webrtcvad Running setup.py clean for webrtcvad Failed to build webrtcvad Installing collected packages: webrtcvad Running setup.py install for webrtcvad ... error error: subprocess-exited-with-error

× Running setup.py install for webrtcvad did not run successfully. │ exit code: 1 ╰─> [11 lines of output] running install X:\anaconda2\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-310 copying webrtcvad.py -> build\lib.win-amd64-cpython-310 running build_ext building '_webrtcvad' 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. ╰─> webrtcvad

note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.

sachinlobo11 commented 1 year ago

Even I have same error. 14.2 is running. it is needed fr noise reduct

sachinlobo11 commented 1 year ago

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

× Building wheel for webrtcvad (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [9 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-39 copying webrtcvad.py -> build\lib.win-amd64-cpython-39 running build_ext building '_webrtcvad' 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 webrtcvad Failed to build webrtcvad ERROR: Could not build wheels for webrtcvad, which is required to install pyproject.toml-based projects

sachinlobo11 commented 1 year ago

This issue solved . you need cmake. check for webrtcvad repo for a solution

https://docs.microsoft.com/en-us/answers/questions/136595/error-microsoft-visual-c-140-or-greater-is-require.html