hacksider / Deep-Live-Cam

real time face swap and one-click video deepfake with only a single image
GNU Affero General Public License v3.0
41k stars 5.98k forks source link

Issues while setting up the project on Windows 10 #670

Closed JackLyons0213 closed 3 weeks ago

JackLyons0213 commented 1 month ago

Hi Everyone

I'm having trouble while setting up the project on my laptop (Windows 10). I'm using Python 3.10.0 and installed Visual Studio 2022 RunTimes as mentioned in README.md. But while running pip install -r requirements.txt, I'm getting the following errors.

Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/cu118
Ignoring torch: markers 'sys_platform == "darwin"' don't match your environment
Ignoring torchvision: markers 'sys_platform == "darwin"' don't match your environment
Ignoring onnxruntime-silicon: markers 'sys_platform == "darwin" and platform_machine == "arm64"' don't match your environment
Collecting numpy<2,>=1.23.5
  Using cached numpy-1.26.4-cp310-cp310-win_amd64.whl (15.8 MB)
Collecting opencv-python==4.8.1.78
  Using cached opencv_python-4.8.1.78-cp37-abi3-win_amd64.whl (38.1 MB)
Collecting onnx==1.16.0
  Using cached onnx-1.16.0-cp310-cp310-win_amd64.whl (14.4 MB)
Collecting insightface==0.7.3
  Using cached insightface-0.7.3.tar.gz (439 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting psutil==5.9.8
  Using cached psutil-5.9.8-cp37-abi3-win_amd64.whl (255 kB)
Collecting tk==0.1.0
  Using cached tk-0.1.0-py3-none-any.whl (3.9 kB)
Collecting customtkinter==5.2.2
  Using cached customtkinter-5.2.2-py3-none-any.whl (296 kB)
Collecting pillow==9.5.0
  Using cached Pillow-9.5.0-cp310-cp310-win_amd64.whl (2.5 MB)
Collecting torch==2.0.1+cu118
  Using cached https://download.pytorch.org/whl/cu118/torch-2.0.1%2Bcu118-cp310-cp310-win_amd64.whl (2619.1 MB)
Collecting torchvision==0.15.2+cu118
  Using cached https://download.pytorch.org/whl/cu118/torchvision-0.15.2%2Bcu118-cp310-cp310-win_amd64.whl (4.9 MB)
Collecting onnxruntime-gpu==1.16.3
  Using cached onnxruntime_gpu-1.16.3-cp310-cp310-win_amd64.whl (141.5 MB)
Collecting tensorflow==2.12.1
  Using cached tensorflow-2.12.1-cp310-cp310-win_amd64.whl (1.9 kB)
Collecting opennsfw2==0.10.2
  Using cached opennsfw2-0.10.2-py3-none-any.whl (12 kB)
Collecting protobuf==4.23.2
  Using cached protobuf-4.23.2-cp310-abi3-win_amd64.whl (422 kB)
Collecting tqdm==4.66.4
  Using cached tqdm-4.66.4-py3-none-any.whl (78 kB)
Collecting gfpgan==1.3.8
  Using cached gfpgan-1.3.8-py3-none-any.whl (52 kB)
Collecting tkinterdnd2==0.4.2
  Using cached tkinterdnd2-0.4.2-py3-none-any.whl (492 kB)
Collecting matplotlib
  Using cached matplotlib-3.9.2-cp310-cp310-win_amd64.whl (7.8 MB)
Collecting requests
  Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Collecting scikit-learn
  Using cached scikit_learn-1.5.2-cp310-cp310-win_amd64.whl (11.0 MB)
Collecting prettytable
  Using cached prettytable-3.11.0-py3-none-any.whl (28 kB)
Collecting easydict
  Using cached easydict-1.13-py3-none-any.whl (6.8 kB)
Collecting scikit-image
  Using cached scikit_image-0.24.0-cp310-cp310-win_amd64.whl (12.9 MB)
Collecting scipy
  Using cached scipy-1.14.1-cp310-cp310-win_amd64.whl (44.8 MB)
Collecting albumentations
  Using cached albumentations-1.4.17-py3-none-any.whl (216 kB)
Collecting cython
  Using cached Cython-3.0.11-cp310-cp310-win_amd64.whl (2.8 MB)
Collecting packaging
  Using cached packaging-24.1-py3-none-any.whl (53 kB)
Collecting darkdetect
  Using cached darkdetect-0.8.0-py3-none-any.whl (9.0 kB)
Collecting jinja2
  Using cached jinja2-3.1.4-py3-none-any.whl (133 kB)
Collecting typing-extensions
  Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Collecting sympy
  Using cached sympy-1.13.3-py3-none-any.whl (6.2 MB)
Collecting filelock
  Using cached filelock-3.16.1-py3-none-any.whl (16 kB)
Collecting networkx
  Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Collecting coloredlogs
  Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting flatbuffers
  Using cached flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)
Collecting tensorflow-intel==2.12.1
  Using cached tensorflow_intel-2.12.1-cp310-cp310-win_amd64.whl (272.8 MB)
Collecting gdown>=4.2.0
  Using cached gdown-5.2.0-py3-none-any.whl (18 kB)
Collecting colorama
  Using cached https://download.pytorch.org/whl/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting lmdb
  Using cached lmdb-1.5.1-cp310-cp310-win_amd64.whl (100 kB)
Collecting facexlib>=0.2.5
  Using cached facexlib-0.3.0-py3-none-any.whl (59 kB)
Collecting tb-nightly
  Using cached tb_nightly-2.19.0a20241001-py3-none-any.whl (5.5 MB)
Collecting yapf
  Using cached yapf-0.40.2-py3-none-any.whl (254 kB)
Collecting basicsr>=1.4.2
  Using cached basicsr-1.4.2.tar.gz (172 kB)
Collecting pyyaml
  Using cached PyYAML-6.0.2-cp310-cp310-win_amd64.whl (161 kB)
Collecting six>=1.12.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting google-pasta>=0.1.1
  Using cached google_pasta-0.2.0-py3-none-any.whl (57 kB)
Collecting tensorflow-io-gcs-filesystem>=0.23.1
  Using cached tensorflow_io_gcs_filesystem-0.31.0-cp310-cp310-win_amd64.whl (1.5 MB)
Collecting tensorboard<2.13,>=2.12
  Using cached tensorboard-2.12.3-py3-none-any.whl (5.6 MB)
Collecting typing-extensions
  Using cached typing_extensions-4.5.0-py3-none-any.whl (27 kB)
Collecting termcolor>=1.1.0
  Using cached termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Collecting tensorflow-estimator<2.13,>=2.12.0
  Using cached tensorflow_estimator-2.12.0-py2.py3-none-any.whl (440 kB)
Collecting grpcio<2.0,>=1.24.3
  Using cached grpcio-1.66.2-cp310-cp310-win_amd64.whl (4.3 MB)
Collecting jax>=0.3.15
  Using cached jax-0.4.33-py3-none-any.whl (2.1 MB)
Collecting opt-einsum>=2.3.2
  Using cached opt_einsum-3.4.0-py3-none-any.whl (71 kB)
Collecting wrapt<1.15,>=1.11.0
  Using cached wrapt-1.14.1-cp310-cp310-win_amd64.whl (35 kB)
Collecting absl-py>=1.0.0
  Using cached absl_py-2.1.0-py3-none-any.whl (133 kB)
Collecting gast<=0.4.0,>=0.2.1
  Using cached gast-0.4.0-py3-none-any.whl (9.8 kB)
Collecting h5py>=2.9.0
  Using cached h5py-3.12.1-cp310-cp310-win_amd64.whl (3.0 MB)
Requirement already satisfied: setuptools in d:\work\deep-live-cam-main\venv\lib\site-packages (from tensorflow-intel==2.12.1->tensorflow==2.12.1->-r requirements.txt (line 17)) (57.4.0)
Collecting keras<2.13,>=2.12.0
  Using cached keras-2.12.0-py2.py3-none-any.whl (1.7 MB)
Collecting numpy<2,>=1.23.5
  Using cached numpy-1.24.3-cp310-cp310-win_amd64.whl (14.8 MB)
Collecting libclang>=13.0.0
  Using cached libclang-18.1.1-py2.py3-none-win_amd64.whl (26.4 MB)
Collecting astunparse>=1.6.0
  Using cached astunparse-1.6.3-py2.py3-none-any.whl (12 kB)
Collecting wheel<1.0,>=0.23.0
  Using cached wheel-0.44.0-py3-none-any.whl (67 kB)
Collecting addict
  Using cached addict-2.4.0-py3-none-any.whl (3.8 kB)
Collecting future
  Using cached future-1.0.0-py3-none-any.whl (491 kB)
Collecting numba
  Using cached numba-0.60.0-cp310-cp310-win_amd64.whl (2.7 MB)
Collecting filterpy
  Using cached filterpy-1.4.5.zip (177 kB)
Collecting beautifulsoup4
  Using cached beautifulsoup4-4.12.3-py3-none-any.whl (147 kB)
Collecting ml-dtypes>=0.2.0
  Using cached ml_dtypes-0.5.0-cp310-cp310-win_amd64.whl (211 kB)
Collecting jaxlib<=0.4.33,>=0.4.33
  Using cached jaxlib-0.4.33-cp310-cp310-win_amd64.whl (54.3 MB)
Collecting cycler>=0.10
  Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting kiwisolver>=1.3.1
  Using cached kiwisolver-1.4.7-cp310-cp310-win_amd64.whl (55 kB)
Collecting fonttools>=4.22.0
  Downloading fonttools-4.54.1-cp310-cp310-win_amd64.whl (2.2 MB)
     |████████████████████████████████| 2.2 MB 437 kB/s
Collecting pyparsing>=2.3.1
  Downloading pyparsing-3.1.4-py3-none-any.whl (104 kB)
     |████████████████████████████████| 104 kB 939 kB/s
Collecting python-dateutil>=2.7
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
     |████████████████████████████████| 229 kB 1.6 MB/s
Collecting contourpy>=1.0.1
  Downloading contourpy-1.3.0-cp310-cp310-win_amd64.whl (216 kB)
     |████████████████████████████████| 216 kB 1.1 MB/s
Collecting imageio>=2.33
  Downloading imageio-2.35.1-py3-none-any.whl (315 kB)
     |████████████████████████████████| 315 kB 328 kB/s
Collecting lazy-loader>=0.4
  Downloading lazy_loader-0.4-py3-none-any.whl (12 kB)
Collecting tifffile>=2022.8.12
  Downloading tifffile-2024.9.20-py3-none-any.whl (228 kB)
     |████████████████████████████████| 228 kB 1.6 MB/s
Collecting google-auth-oauthlib<1.1,>=0.5
  Downloading google_auth_oauthlib-1.0.0-py2.py3-none-any.whl (18 kB)
Collecting markdown>=2.6.8
  Downloading Markdown-3.7-py3-none-any.whl (106 kB)
     |████████████████████████████████| 106 kB 218 kB/s
Collecting google-auth<3,>=1.6.3
  Downloading google_auth-2.35.0-py2.py3-none-any.whl (208 kB)
     |████████████████████████████████| 208 kB 160 kB/s
Collecting werkzeug>=1.0.1
  Downloading werkzeug-3.0.4-py3-none-any.whl (227 kB)
     |████████████████████████████████| 227 kB 109 kB/s
Collecting tensorboard-data-server<0.8.0,>=0.7.0
  Downloading tensorboard_data_server-0.7.2-py3-none-any.whl (2.4 kB)
Collecting cachetools<6.0,>=2.0.0
  Downloading cachetools-5.5.0-py3-none-any.whl (9.5 kB)
Collecting pyasn1-modules>=0.2.1
  Downloading pyasn1_modules-0.4.1-py3-none-any.whl (181 kB)
     |████████████████████████████████| 181 kB 2.2 MB/s
Collecting rsa<5,>=3.1.4
  Downloading rsa-4.9-py3-none-any.whl (34 kB)
Collecting requests-oauthlib>=0.7.0
  Downloading requests_oauthlib-2.0.0-py2.py3-none-any.whl (24 kB)
Collecting pyasn1<0.7.0,>=0.4.6
  Downloading pyasn1-0.6.1-py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 468 kB/s
Collecting charset-normalizer<4,>=2
  Downloading charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl (100 kB)
     |████████████████████████████████| 100 kB 939 kB/s
Collecting certifi>=2017.4.17
  Downloading certifi-2024.8.30-py3-none-any.whl (167 kB)
     |████████████████████████████████| 167 kB 1.6 MB/s
Collecting urllib3<3,>=1.21.1
  Downloading urllib3-2.2.3-py3-none-any.whl (126 kB)
     |████████████████████████████████| 126 kB 2.2 MB/s
Collecting idna<4,>=2.5
  Downloading idna-3.10-py3-none-any.whl (70 kB)
     |████████████████████████████████| 70 kB 1.1 MB/s
Collecting oauthlib>=3.0.0
  Downloading oauthlib-3.2.2-py3-none-any.whl (151 kB)
     |████████████████████████████████| 151 kB 1.3 MB/s
Collecting MarkupSafe>=2.1.1
  Downloading https://download.pytorch.org/whl/MarkupSafe-2.1.5-cp310-cp310-win_amd64.whl (17 kB)
Collecting albucore==0.0.17
  Downloading albucore-0.0.17-py3-none-any.whl (10 kB)
Collecting eval-type-backport
  Downloading eval_type_backport-0.2.0-py3-none-any.whl (5.9 kB)
Collecting pydantic>=2.7.0
  Downloading pydantic-2.9.2-py3-none-any.whl (434 kB)
     |████████████████████████████████| 434 kB 3.3 MB/s
Collecting albumentations
  Downloading albumentations-1.4.16-py3-none-any.whl (214 kB)
     |████████████████████████████████| 214 kB 1.1 MB/s
  Downloading albumentations-1.4.15-py3-none-any.whl (200 kB)
     |████████████████████████████████| 200 kB 1.3 MB/s
Collecting opencv-python-headless>=4.9.0.80
  Downloading opencv_python_headless-4.10.0.84-cp37-abi3-win_amd64.whl (38.8 MB)
     |████████████████████████████████| 38.8 MB 136 kB/s
Collecting albumentations
  Downloading albumentations-1.4.14-py3-none-any.whl (177 kB)
     |████████████████████████████████| 177 kB 384 kB/s
  Downloading albumentations-1.4.13-py3-none-any.whl (171 kB)
     |████████████████████████████████| 171 kB 409 kB/s
  Downloading albumentations-1.4.12-py3-none-any.whl (171 kB)
     |████████████████████████████████| 171 kB 364 kB/s
  Downloading albumentations-1.4.11-py3-none-any.whl (165 kB)
     |████████████████████████████████| 165 kB 364 kB/s
  Downloading albumentations-1.4.10-py3-none-any.whl (161 kB)
     |████████████████████████████████| 161 kB 656 kB/s
  Downloading albumentations-1.4.8-py3-none-any.whl (156 kB)
     |████████████████████████████████| 156 kB 284 kB/s
  Downloading albumentations-1.4.7-py3-none-any.whl (155 kB)
     |████████████████████████████████| 155 kB 930 kB/s
  Downloading albumentations-1.4.6-py3-none-any.whl (153 kB)
     |████████████████████████████████| 153 kB 297 kB/s
  Downloading albumentations-1.4.4-py3-none-any.whl (150 kB)
     |████████████████████████████████| 150 kB 726 kB/s
  Downloading albumentations-1.4.3-py3-none-any.whl (137 kB)
     |████████████████████████████████| 137 kB 1.1 MB/s
  Downloading albumentations-1.4.2-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 939 kB/s
  Downloading albumentations-1.4.1-py3-none-any.whl (130 kB)
     |████████████████████████████████| 130 kB 297 kB/s
  Downloading albumentations-1.4.0-py3-none-any.whl (123 kB)
     |████████████████████████████████| 123 kB 284 kB/s
  Downloading albumentations-1.3.1-py3-none-any.whl (125 kB)
     |████████████████████████████████| 125 kB 297 kB/s
Collecting qudida>=0.0.4
  Downloading qudida-0.0.4-py3-none-any.whl (3.5 kB)
Collecting threadpoolctl>=3.1.0
  Downloading threadpoolctl-3.5.0-py3-none-any.whl (18 kB)
Collecting joblib>=1.2.0
  Downloading joblib-1.4.2-py3-none-any.whl (301 kB)
     |████████████████████████████████| 301 kB 1.3 MB/s
Collecting soupsieve>1.2
  Downloading soupsieve-2.6-py3-none-any.whl (36 kB)
Collecting humanfriendly>=9.1
  Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
     |████████████████████████████████| 86 kB 825 kB/s
Collecting pyreadline3
  Downloading pyreadline3-3.5.4-py3-none-any.whl (83 kB)
     |████████████████████████████████| 83 kB 479 kB/s
Collecting llvmlite<0.44,>=0.43.0dev0
  Downloading llvmlite-0.43.0-cp310-cp310-win_amd64.whl (28.1 MB)
     |████████████████████████████████| 28.1 MB 111 kB/s
Collecting wcwidth
  Downloading wcwidth-0.2.13-py2.py3-none-any.whl (34 kB)
Collecting PySocks!=1.5.7,>=1.5.6
  Downloading PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting mpmath<1.4,>=1.1.0
  Downloading https://download.pytorch.org/whl/mpmath-1.3.0-py3-none-any.whl (536 kB)
     |████████████████████████████████| 536 kB 29 kB/s
Collecting tomli>=2.0.1
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting importlib-metadata>=6.6.0
  Downloading importlib_metadata-8.5.0-py3-none-any.whl (26 kB)
Collecting platformdirs>=3.5.1
  Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
Collecting zipp>=3.20
  Downloading zipp-3.20.2-py3-none-any.whl (9.2 kB)
Using legacy 'setup.py install' for basicsr, since package 'wheel' is not installed.
Using legacy 'setup.py install' for filterpy, since package 'wheel' is not installed.
Building wheels for collected packages: insightface
  Building wheel for insightface (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'D:\Work\Deep-Live-Cam-main\venv\Scripts\python.exe' 'D:\Work\Deep-Live-Cam-main\venv\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\1\AppData\Local\Temp\tmp952mcvm9'
       cwd: C:\Users\1\AppData\Local\Temp\pip-install-fk3_0hm8\insightface_8181eea6796f4e17847fec51ba5d16c2
  Complete output (217 lines):
  WARNING: pandoc not enabled
  running bdist_wheel
  running build
  running build_py
  creating build\lib.win-amd64-cpython-310\insightface
  copying insightface\__init__.py -> build\lib.win-amd64-cpython-310\insightface
  creating build\lib.win-amd64-cpython-310\insightface\app
  copying insightface\app\common.py -> build\lib.win-amd64-cpython-310\insightface\app
  copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-310\insightface\app
  copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-310\insightface\app
  copying insightface\app\__init__.py -> build\lib.win-amd64-cpython-310\insightface\app
  creating build\lib.win-amd64-cpython-310\insightface\commands
  copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-310\insightface\commands
  copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-310\insightface\commands
  copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-310\insightface\commands
  copying insightface\commands\__init__.py -> build\lib.win-amd64-cpython-310\insightface\commands
  creating build\lib.win-amd64-cpython-310\insightface\data
  copying insightface\data\image.py -> build\lib.win-amd64-cpython-310\insightface\data
  copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-310\insightface\data
  copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-310\insightface\data
  copying insightface\data\__init__.py -> build\lib.win-amd64-cpython-310\insightface\data
  creating build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  copying insightface\model_zoo\__init__.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty
  copying insightface\thirdparty\__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty
  creating build\lib.win-amd64-cpython-310\insightface\utils
  copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-310\insightface\utils
  copying insightface\utils\download.py -> build\lib.win-amd64-cpython-310\insightface\utils
  copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-310\insightface\utils
  copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-310\insightface\utils
  copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-310\insightface\utils
  copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-310\insightface\utils
  copying insightface\utils\__init__.py -> build\lib.win-amd64-cpython-310\insightface\utils
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
  copying insightface\thirdparty\face3d\__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
  copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
  copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
  copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
  copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
  copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
  copying insightface\thirdparty\face3d\mesh\__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
  copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
  copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
  copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
  copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
  copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
  copying insightface\thirdparty\face3d\mesh_numpy\__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
  copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
  copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
  copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
  copying insightface\thirdparty\face3d\morphable_model\__init__.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
  running egg_info
  writing insightface.egg-info\PKG-INFO
  writing dependency_links to insightface.egg-info\dependency_links.txt
  writing entry points to insightface.egg-info\entry_points.txt
  writing requirements to insightface.egg-info\requires.txt
  writing top-level names to insightface.egg-info\top_level.txt
  reading manifest file 'insightface.egg-info\SOURCES.txt'
  writing manifest file 'insightface.egg-info\SOURCES.txt'
  C:\Users\1\AppData\Local\Temp\pip-build-env-os80bv8x\overlay\Lib\site-packages\setuptools\command\build_py.py:218: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.thirdparty.face3d.mesh.cython' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.thirdparty.face3d.mesh.cython' to be distributed and are
          already explicitly excluding 'insightface.thirdparty.face3d.mesh.cython' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Users\1\AppData\Local\Temp\pip-build-env-os80bv8x\overlay\Lib\site-packages\setuptools\command\build_py.py:218: _Warning: Package 'insightface.data.images' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.images' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.images' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.images' to be distributed and are
          already explicitly excluding 'insightface.data.images' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  C:\Users\1\AppData\Local\Temp\pip-build-env-os80bv8x\overlay\Lib\site-packages\setuptools\command\build_py.py:218: _Warning: Package 'insightface.data.objects' is absent from the `packages` configuration.
  !!

          ********************************************************************************
          ############################
          # Package would be ignored #
          ############################
          Python recognizes 'insightface.data.objects' as an importable package[^1],
          but it is absent from setuptools' `packages` configuration.

          This leads to an ambiguous overall configuration. If you want to distribute this
          package, please make sure that 'insightface.data.objects' is explicitly added
          to the `packages` configuration field.

          Alternatively, you can also rely on setuptools' discovery methods
          (for example by using `find_namespace_packages(...)`/`find_namespace:`
          instead of `find_packages(...)`/`find:`).

          You can read more about "package discovery" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

          If you don't want 'insightface.data.objects' to be distributed and are
          already explicitly excluding 'insightface.data.objects' via
          `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
          you can try to use `exclude_package_data`, or `include-package-data=False` in
          combination with a more fine grained `package-data` configuration.

          You can read more about "package data files" on setuptools documentation page:

          - https://setuptools.pypa.io/en/latest/userguide/datafiles.html

          [^1]: For Python, any directory (with suitable naming) can be imported,
                even if it does not contain any `.py` files.
                On the other hand, currently there is no concept of package data
                directory, all directories are treated like packages.
          ********************************************************************************

  !!
    check.warn(importable)
  creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  creating build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  copying insightface\data\images\t1.jpg -> build\lib.win-amd64-cpython-310\insightface\data\images
  creating build\lib.win-amd64-cpython-310\insightface\data\objects
  copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-cpython-310\insightface\data\objects
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh\cython
  running build_ext
  building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' extension
  creating build\temp.win-amd64-cpython-310\Release\insightface\thirdparty\face3d\mesh\cython
  "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Iinsightface/thirdparty/face3d/mesh/cython -IC:\Users\1\AppData\Local\Temp\pip-build-env-os80bv8x\overlay\Lib\site-packages\numpy\_core\include -ID:\Work\Deep-Live-Cam-main\venv\include -IC:\Users\1\AppData\Local\Programs\Python\Python310\include -IC:\Users\1\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\ATLMFC\include" "-IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include" /EHsc /Tpinsightface/thirdparty/face3d/mesh/cython/mesh_core.cpp /Fobuild\temp.win-amd64-cpython-310\Release\insightface/thirdparty/face3d/mesh/cython/mesh_core.obj
  mesh_core.cpp
  C:\Users\1\AppData\Local\Temp\pip-install-fk3_0hm8\insightface_8181eea6796f4e17847fec51ba5d16c2\insightface\thirdparty\face3d\mesh\cython\mesh_core.h(4): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
  error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
  ----------------------------------------
  ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Could not build wheels for insightface which use PEP 517 and cannot be installed directly
WARNING: You are using pip version 21.2.3; however, version 24.2 is available.
You should consider upgrading via the 'D:\Work\Deep-Live-Cam-main\venv\Scripts\python.exe -m pip install --upgrade pip' command.

Looking forward to your kind support. Sincerely

npapatheodorou commented 1 month ago

Download and install Visual Studio from this link: https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&passive=false During installation, choose the "C++ Desktop Development" option.

D-a-r-n-o-l-d commented 1 month ago

Getting the same issue on ubuntu 24

D-a-r-n-o-l-d commented 1 month ago

Fixed by installing python3.10-dev through apt you might have to add a repo to apt to install it