Rudrabha / Wav2Lip

This repository contains the codes of "A Lip Sync Expert Is All You Need for Speech to Lip Generation In the Wild", published at ACM Multimedia 2020. For HD commercial model, please try out Sync Labs
https://synclabs.so
10.85k stars 2.3k forks source link

pip install command gives error shared all steps in issue. Using ubuntu 22 #700

Open gocodersuresh opened 2 months ago

gocodersuresh commented 2 months ago

su@su-IdeaPad-Slim-5-16IRL8:~/karm/Wav2Lip-master$ python3 -m venv myenv

su@su-IdeaPad-Slim-5-16IRL8:~/karm/Wav2Lip-master$ source myenv/bin/activate

(myenv) su@su-IdeaPad-Slim-5-16IRL8:~/karm/Wav2Lip-master$ pip install -r requirements.txt Collecting librosa==0.7.0 (from -r requirements.txt (line 1)) Downloading librosa-0.7.0.tar.gz (1.6 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 411.5 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting numpy==1.17.1 (from -r requirements.txt (line 2)) Downloading numpy-1.17.1.zip (6.5 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.5/6.5 MB 595.7 kB/s eta 0:00:00 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [26 lines of output] Running from numpy source directory.

:418: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates Traceback (most recent call last): File "/home/su/karm/Wav2Lip-master/myenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/home/su/karm/Wav2Lip-master/myenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/su/karm/Wav2Lip-master/myenv/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel return hook(metadata_directory, config_settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-on_fbc__/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 373, in prepare_metadata_for_build_wheel self.run_setup() File "/tmp/pip-build-env-on_fbc__/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 503, in run_setup super().run_setup(setup_script=setup_script) File "/tmp/pip-build-env-on_fbc__/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup exec(code, locals()) File "", line 443, in File "", line 422, in setup_package File "/tmp/pip-install-gwqzxxj7/numpy_d9d1ee19b20c4acea68c96aeec11db3c/numpy/distutils/core.py", line 26, in from numpy.distutils.command import config, config_compiler, \ File "/tmp/pip-install-gwqzxxj7/numpy_d9d1ee19b20c4acea68c96aeec11db3c/numpy/distutils/command/config.py", line 20, in from numpy.distutils.mingw32ccompiler import generate_manifest File "/tmp/pip-install-gwqzxxj7/numpy_d9d1ee19b20c4acea68c96aeec11db3c/numpy/distutils/mingw32ccompiler.py", line 34, in from distutils.msvccompiler import get_build_version as get_build_msvc_version ModuleNotFoundError: No module named 'distutils.msvccompiler' [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed × Encountered error while generating package metadata. ╰─> See above for output. note: This is an issue with the package mentioned above, not pip. hint: See above for details.