KwaiVGI / LivePortrait

Bring portraits to life!
https://liveportrait.github.io
Other
12.66k stars 1.33k forks source link

pip install -r requirements.txt安装包时出错,requirement中的部分库要求的python会冲突,有的要求3.10,有的要求3.9,有的要求3.12 #240

Open zhangjunhao-scut opened 3 months ago

zhangjunhao-scut commented 3 months ago

这些是要求至少3.10的 ERROR: Ignored the following versions that require a different python version: 0.23.0 Requires-Python >=3.10; 0.23.0rc0 Requires-Python >=3.10; 0.23.0rc2 Requires-Python >=3.10; 0.23.1 Requires-Python >=3.10; 0.23.2 Requires-Python >=3.10; 0.23.2rc1 Requires-Python >=3.10; 1.14.0 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.10 ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: 1.10.0, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3) ERROR: No matching distribution found for onnxruntime-gpu==1.18.0

这些又是要求python版本要小于3.10的 ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10 ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3) ERROR: No matching distribution found for onnxruntime-gpu==1.18.0

我不太懂这些,有没有大佬指教一下

zhangjunhao-scut commented 3 months ago

(LivePortrait) [jhzhang@hostname LivePortrait]$ python --version Python 3.9.19 (LivePortrait) [jhzhang@hostname LivePortrait]$ pip install -r requirements.txt Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118 Collecting torch==2.3.0 (from -r requirements_base.txt (line 2)) Using cached https://download.pytorch.org/whl/cu118/torch-2.3.0%2Bcu118-cp39-cp39-linux_x86_64.whl (839.7 MB) Collecting torchvision==0.18.0 (from -r requirements_base.txt (line 3)) Using cached https://download.pytorch.org/whl/cu118/torchvision-0.18.0%2Bcu118-cp39-cp39-linux_x86_64.whl (6.3 MB) Collecting torchaudio==2.3.0 (from -r requirements_base.txt (line 4)) Using cached https://download.pytorch.org/whl/cu118/torchaudio-2.3.0%2Bcu118-cp39-cp39-linux_x86_64.whl (3.3 MB) Collecting numpy==1.26.4 (from -r requirements_base.txt (line 6)) Using cached numpy-1.26.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB) Collecting pyyaml==6.0.1 (from -r requirements_base.txt (line 7)) Using cached PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (2.1 kB) Collecting opencv-python==4.10.0.84 (from -r requirements_base.txt (line 8)) Using cached opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB) Collecting scipy==1.13.1 (from -r requirements_base.txt (line 9)) Using cached scipy-1.13.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB) Collecting imageio==2.34.2 (from -r requirements_base.txt (line 10)) Using cached imageio-2.34.2-py3-none-any.whl.metadata (4.9 kB) Collecting lmdb==1.4.1 (from -r requirements_base.txt (line 11)) Using cached lmdb-1.4.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.2 kB) Collecting tqdm==4.66.4 (from -r requirements_base.txt (line 12)) Using cached tqdm-4.66.4-py3-none-any.whl.metadata (57 kB) Collecting rich==13.7.1 (from -r requirements_base.txt (line 13)) Using cached rich-13.7.1-py3-none-any.whl.metadata (18 kB) Collecting ffmpeg-python==0.2.0 (from -r requirements_base.txt (line 14)) Using cached ffmpeg_python-0.2.0-py3-none-any.whl.metadata (1.7 kB) Collecting onnx==1.16.1 (from -r requirements_base.txt (line 15)) Using cached onnx-1.16.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (16 kB) Collecting scikit-image==0.24.0 (from -r requirements_base.txt (line 16)) Using cached scikit_image-0.24.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (14 kB) Collecting albumentations==1.4.10 (from -r requirements_base.txt (line 17)) Using cached albumentations-1.4.10-py3-none-any.whl.metadata (38 kB) Collecting matplotlib==3.9.0 (from -r requirements_base.txt (line 18)) Using cached matplotlib-3.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (11 kB) Collecting imageio-ffmpeg==0.5.1 (from -r requirements_base.txt (line 19)) Using cached imageio_ffmpeg-0.5.1-py3-none-manylinux2010_x86_64.whl.metadata (1.6 kB) Collecting tyro==0.8.5 (from -r requirements_base.txt (line 20)) Using cached tyro-0.8.5-py3-none-any.whl.metadata (8.2 kB) Collecting gradio==4.37.1 (from -r requirements_base.txt (line 21)) Using cached gradio-4.37.1-py3-none-any.whl.metadata (15 kB) Collecting pykalman==0.9.7 (from -r requirements_base.txt (line 22)) Using cached pykalman-0.9.7-py2.py3-none-any.whl.metadata (5.5 kB) ERROR: Ignored the following versions that require a different python version: 0.23.0 Requires-Python >=3.10; 0.23.0rc0 Requires-Python >=3.10; 0.23.0rc2 Requires-Python >=3.10; 0.23.1 Requires-Python >=3.10; 0.23.2 Requires-Python >=3.10; 0.23.2rc1 Requires-Python >=3.10; 1.14.0 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.10 ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: 1.10.0, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3) ERROR: No matching distribution found for onnxruntime-gpu==1.18.0 这个是完整运行情况

zzzweakman commented 3 months ago

这些是要求至少3.10的 ERROR: Ignored the following versions that require a different python version: 0.23.0 Requires-Python >=3.10; 0.23.0rc0 Requires-Python >=3.10; 0.23.0rc2 Requires-Python >=3.10; 0.23.1 Requires-Python >=3.10; 0.23.2 Requires-Python >=3.10; 0.23.2rc1 Requires-Python >=3.10; 1.14.0 Requires-Python >=3.10; 1.14.0rc1 Requires-Python >=3.10; 1.14.0rc2 Requires-Python >=3.10 ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: 1.10.0, 1.11.0, 1.11.1, 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3) ERROR: No matching distribution found for onnxruntime-gpu==1.18.0

这些又是要求python版本要小于3.10的 ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10 ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu==1.18.0 (from versions: 1.12.0, 1.12.1, 1.13.1, 1.14.0, 1.14.1, 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3) ERROR: No matching distribution found for onnxruntime-gpu==1.18.0

我不太懂这些,有没有大佬指教一下

感谢关注~也许是你的linux系统或是pip版本过旧,你可以尝试升级一下pip的版本,此外可以参考一下这个issue #32 。

Thank you for your attention. Perhaps it's because of your Linux system or an outdated version of pip. You can try upgrading the version of pip. In addition, you can refer to this issue #32.

wming3 commented 2 months ago

mac系统 这个项目不支持inter cpu,目前arm架构的mac可以安装