Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gocodersuresh opened this issue Sep 2, 2024 · 0 comments

Comments

@gocodersuresh
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant