neuralchen / SimSwap

An arbitrary face-swapping framework on images and videos with one single trained model!
Other
4.45k stars 881 forks source link

issue installing 'insightface==0.2.1 onnxruntime moviepy' #395

Closed gillesvandevoorde closed 1 year ago

gillesvandevoorde commented 1 year ago

-updated- when running pip install insightface==0.2.1 onnxruntime moviepy, It gives below error.

I have installed CMake and protoc, included both in PATH.

(simswap) E:\AI\SimSwap-main>pip install insightface==0.2.1 onnxruntime moviepy
Collecting insightface==0.2.1
  Using cached insightface-0.2.1-py2.py3-none-any.whl (24 kB)
Collecting onnxruntime
  Using cached onnxruntime-1.10.0-cp36-cp36m-win_amd64.whl (5.2 MB)
Requirement already satisfied: moviepy in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (1.0.3)
Collecting onnx
  Using cached onnx-1.13.1.tar.gz (10.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
Collecting easydict
  Using cached easydict-1.10-py3-none-any.whl
Requirement already satisfied: requests in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from insightface==0.2.1) (2.27.1)
Collecting matplotlib
  Using cached matplotlib-3.3.4-cp36-cp36m-win_amd64.whl (8.5 MB)
Collecting scipy
  Using cached scipy-1.5.4-cp36-cp36m-win_amd64.whl (31.2 MB)
Collecting scikit-image
  Using cached scikit_image-0.17.2-cp36-cp36m-win_amd64.whl (11.5 MB)
Collecting scikit-learn
  Using cached scikit_learn-0.24.2-cp36-cp36m-win_amd64.whl (6.8 MB)
Requirement already satisfied: Pillow in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from insightface==0.2.1) (8.4.0)
Requirement already satisfied: numpy in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from insightface==0.2.1) (1.19.2)
Requirement already satisfied: tqdm in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from insightface==0.2.1) (4.64.1)
Collecting opencv-python
  Using cached opencv-python-4.7.0.72.tar.gz (91.1 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Collecting flatbuffers
  Using cached flatbuffers-23.3.3-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: protobuf in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from onnxruntime) (3.19.6)
Requirement already satisfied: proglog<=1.0.0 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from moviepy) (0.1.10)
Requirement already satisfied: imageio-ffmpeg>=0.2.0 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from moviepy) (0.4.8)
Requirement already satisfied: decorator<5.0,>=4.0.2 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from moviepy) (4.4.2)
Requirement already satisfied: imageio<3.0,>=2.5 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from moviepy) (2.15.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from requests->insightface==0.2.1) (2021.5.30)
Requirement already satisfied: idna<4,>=2.5 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from requests->insightface==0.2.1) (3.4)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from requests->insightface==0.2.1) (2.0.12)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from requests->insightface==0.2.1) (1.26.15)
Requirement already satisfied: importlib-resources in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from tqdm->insightface==0.2.1) (5.4.0)
Requirement already satisfied: colorama in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from tqdm->insightface==0.2.1) (0.4.5)
Requirement already satisfied: zipp>=3.1.0 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from importlib-resources->tqdm->insightface==0.2.1) (3.6.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from matplotlib->insightface==0.2.1) (3.0.9)
Requirement already satisfied: python-dateutil>=2.1 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from matplotlib->insightface==0.2.1) (2.8.2)
Collecting kiwisolver>=1.0.1
  Using cached kiwisolver-1.3.1-cp36-cp36m-win_amd64.whl (51 kB)
Collecting cycler>=0.10
  Using cached cycler-0.11.0-py3-none-any.whl (6.4 kB)
Requirement already satisfied: six>=1.5 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from python-dateutil>=2.1->matplotlib->insightface==0.2.1) (1.16.0)
Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\gilles\anaconda3\envs\simswap\lib\site-packages (from onnx->insightface==0.2.1) (4.1.1)
Collecting onnx
  Using cached onnx-1.13.0.tar.gz (10.4 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
    Preparing wheel metadata ... done
  Using cached onnx-1.12.0.tar.gz (10.1 MB)
Collecting PyWavelets>=1.1.1
  Using cached PyWavelets-1.1.1-cp36-cp36m-win_amd64.whl (4.2 MB)
Collecting tifffile>=2019.7.26
  Using cached tifffile-2020.9.3-py3-none-any.whl (148 kB)
Collecting networkx>=2.0
  Using cached networkx-2.5.1-py3-none-any.whl (1.6 MB)
Collecting threadpoolctl>=2.0.0
  Using cached threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting joblib>=0.11
  Using cached joblib-1.1.1-py2.py3-none-any.whl (309 kB)
Building wheels for collected packages: onnx, opencv-python
  Building wheel for onnx (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\gilles\anaconda3\envs\simswap\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gilles\\AppData\\Local\\Temp\\pip-install-hmn6fp2x\\onnx_f9d204ee18db4945abd2425087e91d8d\\setup.py'"'"'; __file__='"'"'C:\\Users\\gilles\\AppData\\Local\\Temp\\pip-install-hmn6fp2x\\onnx_f9d204ee18db4945abd2425087e91d8d\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\gilles\AppData\Local\Temp\pip-wheel-wywasg44'
       cwd: C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\onnx_f9d204ee18db4945abd2425087e91d8d\
  Complete output (66 lines):
  fatal: not a git repository (or any of the parent directories): .git
  running bdist_wheel
  running build
  running build_py
  running create_version
  running cmake_build
  Using cmake args: ['C:\\Program Files\\CMake\\bin\\cmake.exe', '-DPYTHON_INCLUDE_DIR=C:\\Users\\gilles\\anaconda3\\envs\\simswap\\include', '-DPYTHON_EXECUTABLE=C:\\Users\\gilles\\anaconda3\\envs\\simswap\\python.exe', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cp36-win_amd64.pyd', '-DCMAKE_BUILD_TYPE=Release', '-DPY_VERSION=3.6', '-A', 'x64', '-T', 'host=x64', '-DONNX_ML=1', 'C:\\Users\\gilles\\AppData\\Local\\Temp\\pip-install-hmn6fp2x\\onnx_f9d204ee18db4945abd2425087e91d8d']
  -- Building for: Visual Studio 15 2017
  -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.22621.
  -- The C compiler identification is MSVC 19.16.27049.0
  -- The CXX compiler identification is MSVC 19.16.27049.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found PythonInterp: C:/Users/gilles/anaconda3/envs/simswap/python.exe (found suitable version "3.6.8", minimum required is "3.6")
  -- Found PythonLibs: C:/Users/gilles/anaconda3/envs/simswap/libs/python36.lib (found suitable version "3.6.8", minimum required is "3.6")
  Generated: C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/onnx_f9d204ee18db4945abd2425087e91d8d/.setuptools-cmake-build/onnx/onnx-ml.proto
  CMake Error at CMakeLists.txt:299 (message):
    Protobuf compiler not found
  Call Stack (most recent call first):
    CMakeLists.txt:330 (relative_protobuf_generate_cpp)

  -- Configuring incomplete, errors occurred!
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\onnx_f9d204ee18db4945abd2425087e91d8d\setup.py", line 354, in <module>
      "backend-test-tools = onnx.backend.test.cmd_tools:main",
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\site-packages\setuptools\__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\core.py", line 148, in setup
      dist.run_commands()
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\dist.py", line 955, in run_commands
      self.run_command(cmd)
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\command\build.py", line 135, in run
      self.run_command(cmd_name)
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\onnx_f9d204ee18db4945abd2425087e91d8d\setup.py", line 223, in run
      self.run_command("cmake_build")
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\distutils\dist.py", line 974, in run_command
      cmd_obj.run()
    File "C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\onnx_f9d204ee18db4945abd2425087e91d8d\setup.py", line 209, in run
      subprocess.check_call(cmake_args)
    File "C:\Users\gilles\anaconda3\envs\simswap\lib\subprocess.py", line 311, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['C:\\Program Files\\CMake\\bin\\cmake.exe', '-DPYTHON_INCLUDE_DIR=C:\\Users\\gilles\\anaconda3\\envs\\simswap\\include', '-DPYTHON_EXECUTABLE=C:\\Users\\gilles\\anaconda3\\envs\\simswap\\python.exe', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cp36-win_amd64.pyd', '-DCMAKE_BUILD_TYPE=Release', '-DPY_VERSION=3.6', '-A', 'x64', '-T', 'host=x64', '-DONNX_ML=1', 'C:\\Users\\gilles\\AppData\\Local\\Temp\\pip-install-hmn6fp2x\\onnx_f9d204ee18db4945abd2425087e91d8d']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for onnx
  Running setup.py clean for onnx
  Building wheel for opencv-python (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\gilles\anaconda3\envs\simswap\python.exe' 'C:\Users\gilles\anaconda3\envs\simswap\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\gilles\AppData\Local\Temp\tmpvd27whes'
       cwd: C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11
  Complete output (759 lines):

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Ninja

    does not support platform specification, but platform

      x64

    was specified.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 17 2022 x64 v143)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 17 2022

    could not find any instance of Visual Studio.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 17 2022 x64 v143' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Ninja

    does not support platform specification, but platform

      x64

    was specified.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 16 2019 x64 v142)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 16 2019 x64 v142' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Visual Studio 16 2019

    could not find any instance of Visual Studio.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 16 2019 x64 v142' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  CMake Error at CMakeLists.txt:2 (PROJECT):
    Generator

      Ninja

    does not support platform specification, but platform

      x64

    was specified.

  -- Configuring incomplete, errors occurred!
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Ninja (Visual Studio 15 2017 x64 v141)' generator - failure
  --------------------------------------------------------------------------------

  --------------------------------------------------------------------------------
  -- Trying 'Visual Studio 15 2017 x64 v141' generator
  --------------------------------
  ---------------------------
  ----------------------
  -----------------
  ------------
  -------
  --
  Not searching for unused variables given on the command line.
  -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.22621.
  -- The C compiler identification is MSVC 19.16.27049.0
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- The CXX compiler identification is MSVC 19.16.27049.0
  CMake Warning (dev) at C:/Users/gilles/AppData/Local/Temp/pip-build-env-fl7a3txz/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:168 (if):
    Policy CMP0054 is not set: Only interpret if() arguments as variables or
    keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
    details.  Use the cmake_policy command to set the policy and suppress this
    warning.

    Quoted variables like "MSVC" will no longer be dereferenced when the policy
    is set to NEW.  Since the policy is not set the OLD behavior will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:4 (ENABLE_LANGUAGE)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Warning (dev) at C:/Users/gilles/AppData/Local/Temp/pip-build-env-fl7a3txz/overlay/Lib/site-packages/cmake/data/share/cmake-3.26/Modules/CMakeDetermineCXXCompiler.cmake:189 (elseif):
    Policy CMP0054 is not set: Only interpret if() arguments as variables or
    keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
    details.  Use the cmake_policy command to set the policy and suppress this
    warning.

    Quoted variables like "MSVC" will no longer be dereferenced when the policy
    is set to NEW.  Since the policy is not set the OLD behavior will be used.
  Call Stack (most recent call first):
    CMakeLists.txt:4 (ENABLE_LANGUAGE)
  This warning is for project developers.  Use -Wno-dev to suppress it.

  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring done (4.2s)
  -- Generating done (0.0s)
  -- Build files have been written to: C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/_cmake_test_compile/build
  --
  -------
  ------------
  -----------------
  ----------------------
  ---------------------------
  --------------------------------
  -- Trying 'Visual Studio 15 2017 x64 v141' generator - success
  --------------------------------------------------------------------------------

  Configuring Project
    Working directory:
      C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build
    Command:
      'C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' 'C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\opencv' -G 'Visual Studio 15 2017' '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.6.8 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\gilles\anaconda3\envs\simswap\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\gilles\anaconda3\envs\simswap\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\gilles\anaconda3\envs\simswap\libs\python36.lib' '-DPython_EXECUTABLE:PATH=C:\Users\gilles\anaconda3\envs\simswap\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\gilles\anaconda3\envs\simswap' '-DPython_INCLUDE_DIR:PATH=C:\Users\gilles\anaconda3\envs\simswap\Include' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\gilles\anaconda3\envs\simswap\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\gilles\anaconda3\envs\simswap' '-DPython3_INCLUDE_DIR:PATH=C:\Users\gilles\anaconda3\envs\simswap\Include' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\numpy\core\include' -T v141 -A x64 '-DPYTHON3_EXECUTABLE=C:\Users\gilles\anaconda3\envs\simswap\python.exe' -DPYTHON3_INCLUDE_DIR=C:/Users/gilles/anaconda3/envs/simswap/Include -DPYTHON3_LIBRARY=C:/Users/gilles/anaconda3/envs/simswap/libs/python36.lib -DBUILD_opencv_python3=ON -DBUILD_opencv_python2=OFF -DBUILD_opencv_java=OFF -DOPENCV_PYTHON3_INSTALL_PATH=python -DINSTALL_CREATE_DISTRIB=ON -DBUILD_opencv_apps=OFF -DBUILD_opencv_freetype=OFF -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_DOCS=OFF -DPYTHON3_LIMITED_API=ON -DBUILD_OPENEXR=ON -DCMAKE_GENERATOR_PLATFORM=x64 -DCMAKE_BUILD_TYPE:STRING=Release

  -- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.22621.
  -- The CXX compiler identification is MSVC 19.16.27049.0
  -- The C compiler identification is MSVC 19.16.27049.0
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- ocv_init_download: OpenCV source tree is not fetched as git repository. 3rdparty resources will be downloaded from github.com by default.
  -- Detected processor: AMD64
  -- Found PythonInterp: C:/Users/gilles/anaconda3/envs/simswap/python.exe (found suitable version "3.6.8", minimum required is "2.7")
  CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
    CMake's 'find_host_package(PythonInterp 2.7)' found wrong Python version:

    PYTHON_EXECUTABLE=C:/Users/gilles/anaconda3/envs/simswap/python.exe

    PYTHON_VERSION_STRING=3.6.8

    Consider providing the 'PYTHON2_EXECUTABLE' variable via CMake command line
    or environment variables

  Call Stack (most recent call first):
    cmake/OpenCVDetectPython.cmake:271 (find_python)
    CMakeLists.txt:643 (include)

  -- Found Python2: C:/Python27/python.exe (found version "2.7.12") found components: Interpreter
  -- Found PythonInterp: C:/Python27/python.exe (found version "2.7.12")
  -- Could NOT find PythonLibs: Found unsuitable version "3.6.8", but required is exact version "2.7.12" (found C:/Users/gilles/anaconda3/envs/simswap/libs/python36.lib)
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\numpy\__init__.py", line 142, in <module>
      from . import add_newdocs
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
      from numpy.lib import add_newdoc
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
      from .type_check import *
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
      import numpy.core.numeric as _nx
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\numpy\core\__init__.py", line 26, in <module>
      raise ImportError(msg)
  ImportError:
  Importing the multiarray numpy extension module failed.  Most
  likely you are trying to import a failed build of numpy.
  If you're working with a numpy git repo, try `git clean -xdf` (removes all
  files not under version control).  Otherwise reinstall numpy.

  Original error was: cannot import name multiarray

  -- Found PythonInterp: C:\Users\gilles\anaconda3\envs\simswap\python.exe (found suitable version "3.6.8", minimum required is "3.2")
  -- Found PythonLibs: C:/Users/gilles/anaconda3/envs/simswap/libs/python36.lib (found suitable exact version "3.6.8")
  -- Performing Test HAVE_CXX_FP:PRECISE
  -- Performing Test HAVE_CXX_FP:PRECISE - Success
  -- Performing Test HAVE_C_FP:PRECISE
  -- Performing Test HAVE_C_FP:PRECISE - Success
  -- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
  -- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
  -- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
  -- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
  -- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
  -- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
  -- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
  -- Performing Test HAVE_CPU_POPCNT_SUPPORT - Success
  -- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
  -- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success
  -- Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_fp16.cpp)
  -- Performing Test HAVE_CXX_ARCH:AVX - Success
  -- Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp)
  -- Performing Test HAVE_CXX_ARCH:AVX2 - Success
  -- Performing Test HAVE_CXX_ARCH:AVX512 (check file: cmake/checks/cpu_avx512.cpp)
  -- Performing Test HAVE_CXX_ARCH:AVX512 - Success
  -- Performing Test HAVE_CPU_BASELINE_FLAGS
  -- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX
  -- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success
  -- Performing Test HAVE_CXX_W15240
  -- Performing Test HAVE_CXX_W15240 - Success
  -- Performing Test HAVE_C_W15240
  -- Performing Test HAVE_C_W15240 - Success
  -- Looking for malloc.h
  -- Looking for malloc.h - found
  -- Looking for _aligned_malloc
  -- Looking for _aligned_malloc - found
  -- Looking for fseeko
  -- Looking for fseeko - not found
  -- Looking for sys/types.h
  -- Looking for sys/types.h - found
  -- Looking for stdint.h
  -- Looking for stdint.h - found
  -- Looking for stddef.h
  -- Looking for stddef.h - found
  -- Check size of off64_t
  -- Check size of off64_t - failed
  -- libjpeg-turbo: VERSION = 2.1.3, BUILD = opencv-4.7.0-libjpeg-turbo
  -- Check size of size_t
  -- Check size of size_t - done
  -- Check size of unsigned long
  -- Check size of unsigned long - done
  -- Looking for include file intrin.h
  -- Looking for include file intrin.h - found
  -- Looking for a ASM_NASM compiler
  -- Looking for a ASM_NASM compiler - NOTFOUND
  -- libjpeg-turbo(SIMD): SIMD extensions disabled: could not find NASM compiler.  Performance will suffer.
  -- Looking for assert.h
  -- Looking for assert.h - found
  -- Looking for fcntl.h
  -- Looking for fcntl.h - found
  -- Looking for inttypes.h
  -- Looking for inttypes.h - found
  -- Looking for io.h
  -- Looking for io.h - found
  -- Looking for limits.h
  -- Looking for limits.h - found
  -- Looking for memory.h
  -- Looking for memory.h - found
  -- Looking for search.h
  -- Looking for search.h - found
  -- Looking for string.h
  -- Looking for string.h - found
  -- Performing Test C_HAS_inline
  -- Performing Test C_HAS_inline - Success
  -- Check size of signed short
  -- Check size of signed short - done
  -- Check size of unsigned short
  -- Check size of unsigned short - done
  -- Check size of signed int
  -- Check size of signed int - done
  -- Check size of unsigned int
  -- Check size of unsigned int - done
  -- Check size of signed long
  -- Check size of signed long - done
  -- Check size of signed long long
  -- Check size of signed long long - done
  -- Check size of unsigned long long
  -- Check size of unsigned long long - done
  -- Check size of unsigned char *
  -- Check size of unsigned char * - done
  -- Check size of ptrdiff_t
  -- Check size of ptrdiff_t - done
  -- Looking for memmove
  -- Looking for memmove - not found
  -- Looking for setmode
  -- Looking for setmode - found
  -- Looking for strcasecmp
  -- Looking for strcasecmp - not found
  -- Looking for strchr
  -- Looking for strchr - found
  -- Looking for strrchr
  -- Looking for strrchr - found
  -- Looking for strstr
  -- Looking for strstr - found
  -- Looking for strtol
  -- Looking for strtol - found
  -- Looking for strtol
  -- Looking for strtol - found
  -- Looking for strtoull
  -- Looking for strtoull - found
  -- Looking for lfind
  -- Looking for lfind - found
  -- Performing Test HAVE_SNPRINTF
  -- Performing Test HAVE_SNPRINTF - Success
  -- Performing Test HAVE_C_STD_C99
  -- Performing Test HAVE_C_STD_C99 - Failed
  -- Could NOT find OpenJPEG (minimal suitable version: 2.0, recommended version >= 2.3.1). OpenJPEG will be built from sources
  -- OpenJPEG: VERSION = 2.4.0, BUILD = opencv-4.7.0-openjp2-2.4.0
  -- Looking for stdlib.h
  -- Looking for stdlib.h - found
  -- Looking for stdio.h
  -- Looking for stdio.h - found
  -- Looking for math.h
  -- Looking for math.h - found
  -- Looking for float.h
  -- Looking for float.h - found
  -- Looking for time.h
  -- Looking for time.h - found
  -- Looking for stdarg.h
  -- Looking for stdarg.h - found
  -- Looking for ctype.h
  -- Looking for ctype.h - found
  -- Looking for stdint.h
  -- Looking for stdint.h - found
  -- Looking for inttypes.h
  -- Looking for inttypes.h - found
  -- Looking for strings.h
  -- Looking for strings.h - not found
  -- Looking for sys/stat.h
  -- Looking for sys/stat.h - found
  -- Looking for unistd.h
  -- Looking for unistd.h - not found
  -- Looking for include file malloc.h
  -- Looking for include file malloc.h - found
  -- Looking for _aligned_malloc
  -- Looking for _aligned_malloc - found
  -- Looking for posix_memalign
  -- Looking for posix_memalign - not found
  -- Looking for memalign
  -- Looking for memalign - not found
  -- OpenJPEG libraries will be built from sources: libopenjp2 (version "2.4.0")
  -- IPPICV: Downloading ippicv_2020_win_intel64_20191018_general.zip from https://raw.githubusercontent.com/opencv/opencv_3rdparty/a56b6ac6f030c312b2dce17430eef13aed9af274/ippicv/ippicv_2020_win_intel64_20191018_general.zip
  -- found Intel IPP (ICV version): 2020.0.0 [2020.0.0 Gold]
  -- at: C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/_skbuild/win-amd64-3.6/cmake-build/3rdparty/ippicv/ippicv_win/icv
  -- found Intel IPP Integration Wrappers sources: 2020.0.0
  -- at: C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/_skbuild/win-amd64-3.6/cmake-build/3rdparty/ippicv/ippicv_win/iw
  -- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
  -- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
  -- Looking for sgemm_
  -- Looking for sgemm_ - not found
  -- Found Threads: TRUE
  -- Could NOT find BLAS (missing: BLAS_LIBRARIES)
  -- Could NOT find LAPACK (missing: LAPACK_LIBRARIES)
      Reason given by package: LAPACK could not be found because dependency BLAS could not be found.

  -- Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 AWT JVM)
  -- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
  -- ADE: Downloading v0.1.2a.zip from https://github.com/opencv/ade/archive/v0.1.2a.zip
  -- FFMPEG: Downloading opencv_videoio_ffmpeg.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/opencv_videoio_ffmpeg.dll
  -- FFMPEG: Downloading opencv_videoio_ffmpeg_64.dll from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/opencv_videoio_ffmpeg_64.dll
  -- FFMPEG: Downloading ffmpeg_version.cmake from https://raw.githubusercontent.com/opencv/opencv_3rdparty/7dd0d4f1d6fe75f05f3d3b5e38cbc96c1a2d2809/ffmpeg/ffmpeg_version.cmake
  -- Looking for mfapi.h
  -- Looking for mfapi.h - found
  -- Looking for vidcap.h
  -- Looking for vidcap.h - found
  -- Looking for d3d11_4.h
  -- Looking for d3d11_4.h - found
  -- Allocator metrics storage type: 'long long'
  -- Excluding from source files list: modules/imgproc/src/imgwarp.lasx.cpp
  -- Excluding from source files list: modules/imgproc/src/resize.lasx.cpp
  -- Registering hook 'INIT_MODULE_SOURCES_opencv_dnn': C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/dnn/cmake/hooks/INIT_MODULE_SOURCES_opencv_dnn.cmake
  -- opencv_dnn: filter out cuda4dnn source code
  -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.rvv.cpp
  -- Excluding from source files list: <BUILD>/modules/dnn/layers/layers_common.lasx.cpp
  -- Excluding from source files list: <BUILD>/modules/dnn/int8layers/layers_common.lasx.cpp
  -- imgcodecs: OpenEXR codec is disabled in runtime. Details: https://github.com/opencv/opencv/issues/21326
  -- highgui: using builtin backend: WIN32UI
  -- Found 'misc' Python modules from C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/python/package/extra_modules
  -- Found 'mat_wrapper;utils' Python modules from C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/core/misc/python/package
  -- Found 'gapi' Python modules from C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/gapi/misc/python/package
  -- Found 'misc' Python modules from C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/python/package/extra_modules
  -- Found 'mat_wrapper;utils' Python modules from C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/core/misc/python/package
  -- Found 'gapi' Python modules from C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/gapi/misc/python/package
  --
  -- General configuration for OpenCV 4.7.0 =====================================
  --   Version control:               unknown
  --
  --   Platform:
  --     Timestamp:                   2023-04-15T06:19:44Z
  --     Host:                        Windows 10.0.22621 AMD64
  --     CMake:                       3.26.3
  --     CMake generator:             Visual Studio 15 2017
  --     CMake build tool:            C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin/MSBuild.exe
  --     MSVC:                        1916
  --     Configuration:               Debug Release
  --
  --   CPU/HW features:
  --     Baseline:                    SSE SSE2 SSE3
  --       requested:                 SSE3
  --     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX
  --       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
  --       SSE4_1 (16 files):         + SSSE3 SSE4_1
  --       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
  --       FP16 (0 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
  --       AVX (4 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
  --       AVX2 (32 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
  --       AVX512_SKX (5 files):      + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_COMMON AVX512_SKX
  --
  --   C/C++:
  --     Built as dynamic libs?:      NO
  --     C++ standard:                11
  --     C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe  (ver 19.16.27049.0)
  --     C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819 /MP  /MT /O2 /Ob2 /DNDEBUG
  --     C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /wd4819 /MP  /MTd /Zi /Ob0 /Od /RTC1
  --     C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
  --     C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /MP   /MT /O2 /Ob2 /DNDEBUG
  --     C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /fp:precise     /MP /MTd /Zi /Ob0 /Od /RTC1
  --     Linker flags (Release):      /machine:x64  /NODEFAULTLIB:atlthunk.lib /INCREMENTAL:NO  /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:libcpmtd.lib /NODEFAULTLIB:msvcrtd.lib
  --     Linker flags (Debug):        /machine:x64  /NODEFAULTLIB:atlthunk.lib /debug /INCREMENTAL  /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:libcpmt.lib /NODEFAULTLIB:msvcrt.lib
  --     ccache:                      NO
  --     Precompiled headers:         YES
  --     Extra dependencies:          wsock32 comctl32 gdi32 ole32 setupapi ws2_32
  --     3rdparty dependencies:       libprotobuf ade ittnotify libjpeg-turbo libwebp libpng libtiff libopenjp2 IlmImf zlib quirc ippiw ippicv
  --
  --   OpenCV modules:
  --     To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python3 stitching video videoio
  --     Disabled:                    world
  --     Disabled by dependency:      -
  --     Unavailable:                 java python2 ts
  --     Applications:                -
  --     Documentation:               NO
  --     Non-free algorithms:         NO
  --
  --   Windows RT support:            NO
  --
  --   GUI:                           WIN32UI
  --     Win32 UI:                    YES
  --     VTK support:                 NO
  --
  --   Media I/O:
  --     ZLib:                        build (ver 1.2.13)
  --     JPEG:                        build-libjpeg-turbo (ver 2.1.3-62)
  --       SIMD Support Request:      YES
  --       SIMD Support:              NO
  --     WEBP:                        build (ver encoder: 0x020f)
  --     PNG:                         build (ver 1.6.37)
  --     TIFF:                        build (ver 42 - 4.2.0)
  --     JPEG 2000:                   build (ver 2.4.0)
  --     OpenEXR:                     build (ver 2.3.0)
  --     HDR:                         YES
  --     SUNRASTER:                   YES
  --     PXM:                         YES
  --     PFM:                         YES
  --
  --   Video I/O:
  --     DC1394:                      NO
  --     FFMPEG:                      YES (prebuilt binaries)
  --       avcodec:                   YES (58.134.100)
  --       avformat:                  YES (58.76.100)
  --       avutil:                    YES (56.70.100)
  --       swscale:                   YES (5.9.100)
  --       avresample:                YES (4.0.0)
  --     GStreamer:                   NO
  --     DirectShow:                  YES
  --     Media Foundation:            YES
  --       DXVA:                      YES
  --
  --   Parallel framework:            Concurrency
  --
  --   Trace:                         YES (with Intel ITT)
  --
  --   Other third-party libraries:
  --     Intel IPP:                   2020.0.0 Gold [2020.0.0]
  --            at:                   C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/_skbuild/win-amd64-3.6/cmake-build/3rdparty/ippicv/ippicv_win/icv
  --     Intel IPP IW:                sources (2020.0.0)
  --               at:                C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/_skbuild/win-amd64-3.6/cmake-build/3rdparty/ippicv/ippicv_win/iw
  --     Lapack:                      NO
  --     Eigen:                       NO
  --     Custom HAL:                  NO
  --     Protobuf:                    build (3.19.1)
  --
  --   OpenCL:                        YES (NVD3D11)
  --     Include path:                C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/3rdparty/include/opencl/1.2
  --     Link libraries:              Dynamic load
  --
  --   Python 3:
  --     Interpreter:                 C:/Users/gilles/anaconda3/envs/simswap/python.exe (ver 3.6.8)
  --     Libraries:                   C:/Users/gilles/anaconda3/envs/simswap/libs/python36.lib (ver 3.6.8)
  --     numpy:                       C:/Users/gilles/AppData/Local/Temp/pip-build-env-fl7a3txz/overlay/Lib/site-packages/numpy/core/include (ver 1.13.3)
  --     install path:                python/cv2/python-3
  --
  --   Python (for build):            C:/Python27/python.exe
  --
  --   Java:
  --     ant:                         NO
  --     JNI:                         NO
  --     Java wrappers:               NO
  --     Java tests:                  NO
  --
  --   Install to:                    C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/_skbuild/win-amd64-3.6/cmake-install
  -- -----------------------------------------------------------------
  --
  -- Configuring done (86.3s)
  -- Generating done (0.8s)
  -- Build files have been written to: C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/_skbuild/win-amd64-3.6/cmake-build
  Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
  Copyright (C) Microsoft Corporation. All rights reserved.

  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\ZERO_CHECK.vcxproj]
    Checking Build System
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\3rdparty\libjpeg-turbo\jsimd.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/3rdparty/libjpeg-turbo/CMakeLists.txt
    jsimd_none.c
    jsimd.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\3rdparty\libjpeg-turbo\jsimd.dir\Release\jsimd.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\calib3d\opencv_calib3d_AVX2.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/calib3d/CMakeLists.txt
    undistort.avx2.cpp
    opencv_calib3d_AVX2.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\calib3d\opencv_calib3d_AVX2.dir\Release\opencv_calib3d_AVX2.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_AVX.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/core/CMakeLists.txt
    mathfuncs_core.avx.cpp
    opencv_core_AVX.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_AVX.dir\Release\opencv_core_AVX.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_AVX2.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/core/CMakeLists.txt
    mathfuncs_core.avx2.cpp
    stat.avx2.cpp
    arithm.avx2.cpp
    convert.avx2.cpp
    convert_scale.avx2.cpp
    count_non_zero.avx2.cpp
    matmul.avx2.cpp
    mean.avx2.cpp
    merge.avx2.cpp
    split.avx2.cpp
    sum.avx2.cpp
    opencv_core_AVX2.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_AVX2.dir\Release\opencv_core_AVX2.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_AVX512_SKX.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/core/CMakeLists.txt
    matmul.avx512_skx.cpp
    opencv_core_AVX512_SKX.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_AVX512_SKX.dir\Release\opencv_core_AVX512_SKX.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_SSE4_1.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/core/CMakeLists.txt
    arithm.sse4_1.cpp
    matmul.sse4_1.cpp
    opencv_core_SSE4_1.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_SSE4_1.dir\Release\opencv_core_SSE4_1.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_SSE4_2.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/core/CMakeLists.txt
    stat.sse4_2.cpp
    opencv_core_SSE4_2.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\core\opencv_core_SSE4_2.dir\Release\opencv_core_SSE4_2.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\dnn\opencv_dnn_AVX.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/dnn/CMakeLists.txt
    layers_common.avx.cpp
    opencv_dnn_AVX.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\dnn\opencv_dnn_AVX.dir\Release\opencv_dnn_AVX.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\dnn\opencv_dnn_AVX2.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/dnn/CMakeLists.txt
    fast_convolution.avx2.cpp
    layers_common.avx2.cpp
    layers_common.avx2.cpp
    opencv_dnn_AVX2.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\dnn\opencv_dnn_AVX2.dir\Release\opencv_dnn_AVX2.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\dnn\opencv_dnn_AVX512_SKX.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/dnn/CMakeLists.txt
    layers_common.avx512_skx.cpp
    layers_common.avx512_skx.cpp
    opencv_dnn_AVX512_SKX.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\dnn\opencv_dnn_AVX512_SKX.dir\Release\opencv_dnn_AVX512_SKX.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\opencv_dnn_plugins.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/CMakeLists.txt
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\features2d\opencv_features2d_AVX2.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/features2d/CMakeLists.txt
    fast.avx2.cpp
    sift.avx2.cpp
    opencv_features2d_AVX2.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\features2d\opencv_features2d_AVX2.dir\Release\opencv_features2d_AVX2.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\features2d\opencv_features2d_AVX512_SKX.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(321,5): error MSB3491: Could not write lines to file "opencv_features2d_AVX512_SKX.dir\Release\opencv_f.6152C806.tlog\opencv_features2d_AVX512_SKX.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\features2d\opencv_features2d_AVX512_SKX.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\features2d\opencv_features2d_SSE4_1.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/features2d/CMakeLists.txt
    sift.sse4_1.cpp
    opencv_features2d_SSE4_1.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\features2d\opencv_features2d_SSE4_1.dir\Release\opencv_features2d_SSE4_1.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\gapi\opencv_gapi_AVX2.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/gapi/CMakeLists.txt
    gfluidimgproc_func.avx2.cpp
    gfluidcore_func.avx2.cpp
    opencv_gapi_AVX2.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\gapi\opencv_gapi_AVX2.dir\Release\opencv_gapi_AVX2.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\gapi\opencv_gapi_SSE4_1.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/gapi/CMakeLists.txt
    gfluidimgproc_func.sse4_1.cpp
    gfluidcore_func.sse4_1.cpp
    opencv_gapi_SSE4_1.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\gapi\opencv_gapi_SSE4_1.dir\Release\opencv_gapi_SSE4_1.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\opencv_highgui_plugins.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/CMakeLists.txt
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_AVX.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/imgproc/CMakeLists.txt
    corner.avx.cpp
    accum.avx.cpp
    opencv_imgproc_AVX.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_AVX.dir\Release\opencv_imgproc_AVX.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_AVX2.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/imgproc/CMakeLists.txt
    imgwarp.avx2.cpp
    resize.avx2.cpp
    accum.avx2.cpp
    bilateral_filter.avx2.cpp
    box_filter.avx2.cpp
    filter.avx2.cpp
    color_hsv.avx2.cpp
    color_rgb.avx2.cpp
    color_yuv.avx2.cpp
    median_blur.avx2.cpp
    morph.avx2.cpp
    smooth.avx2.cpp
    sumpixels.avx2.cpp
    opencv_imgproc_AVX2.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_AVX2.dir\Release\opencv_imgproc_AVX2.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_AVX512_SKX.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/imgproc/CMakeLists.txt
    sumpixels.avx512_skx.cpp
    opencv_imgproc_AVX512_SKX.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_AVX512_SKX.dir\Release\opencv_imgproc_AVX512_SKX.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_SSE4_1.vcxproj]
    Building Custom Rule C:/Users/gilles/AppData/Local/Temp/pip-install-hmn6fp2x/opencv-python_415607ec41544d8a8a142a1f4c550f11/opencv/modules/imgproc/CMakeLists.txt
    imgwarp.sse4_1.cpp
    resize.sse4_1.cpp
    accum.sse4_1.cpp
    box_filter.sse4_1.cpp
    filter.sse4_1.cpp
    color_hsv.sse4_1.cpp
    color_rgb.sse4_1.cpp
    color_yuv.sse4_1.cpp
    median_blur.sse4_1.cpp
    morph.sse4_1.cpp
    smooth.sse4_1.cpp
    opencv_imgproc_SSE4_1.vcxproj -> C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\imgproc\opencv_imgproc_SSE4_1.dir\Release\opencv_imgproc_SSE4_1.lib
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\python_bindings_generator\gen_opencv_python_source.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(321,5): error MSB3491: Could not write lines to file "x64\Release\gen_opencv_python_source\gen_open.47B3D69F.tlog\gen_opencv_python_source.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\python_bindings_generator\gen_opencv_python_source.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(399,5): warning MSB8029: The Intermediate directory or Output directory cannot reside under the Temporary directory as it could lead to issues with incremental build. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\.firstpass\videoio\opencv_videoio_plugins.vcxproj]
  C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(321,5): error MSB3491: Could not write lines to file "x64\Release\opencv_videoio_plugins\opencv_v.70099A87.tlog\opencv_videoio_plugins.lastbuildstate". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. [C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build\modules\.firstpass\videoio\opencv_videoio_plugins.vcxproj]
  Traceback (most recent call last):
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\skbuild\setuptools_wrap.py", line 642, in setup
      cmkr.make(make_args, install_target=cmake_install_target, env=env)
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\skbuild\cmaker.py", line 679, in make
      self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
    File "C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\skbuild\cmaker.py", line 711, in make_impl
      "An error occurred while building with CMake.\n"

  An error occurred while building with CMake.
    Command:
      'C:\Users\gilles\AppData\Local\Temp\pip-build-env-fl7a3txz\overlay\Lib\site-packages\cmake\data\bin/cmake.exe' --build . --target install --config Release --
    Install target:
      install
    Source directory:
      C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11
    Working directory:
      C:\Users\gilles\AppData\Local\Temp\pip-install-hmn6fp2x\opencv-python_415607ec41544d8a8a142a1f4c550f11\_skbuild\win-amd64-3.6\cmake-build
  Please check the install target is valid and see CMake's output for more information.
  ----------------------------------------
  ERROR: Failed building wheel for opencv-python
Failed to build onnx opencv-python
ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly
(simswap) E:\AI\SimSwap-main>conda list
# packages in environment at C:\Users\gilles\anaconda3\envs\simswap:
#
# Name                    Version                   Build  Channel
arrow                     1.2.3                    pypi_0    pypi
blas                      1.0                         mkl
certifi                   2021.5.30        py36haa95532_0
charset-normalizer        2.0.12                   pypi_0    pypi
colorama                  0.4.5                    pypi_0    pypi
cudatoolkit               10.2.89              h74a9793_1
dataclasses               0.8                pyh4f3eec9_6
decorator                 4.4.2                    pypi_0    pypi
distro                    1.8.0                    pypi_0    pypi
freetype                  2.12.1               ha860e81_0
hdf5                      1.8.20               hac2f561_1
icc_rt                    2022.1.0             h6049295_2
idna                      3.4                      pypi_0    pypi
imageio                   2.15.0                   pypi_0    pypi
imageio-ffmpeg            0.4.8                    pypi_0    pypi
importlib-resources       5.4.0                    pypi_0    pypi
intel-openmp              2023.0.0         h59b6b97_25923
jinja2                    3.0.3                    pypi_0    pypi
jinja2-time               0.2.0                    pypi_0    pypi
jpeg                      9b                   hb83a4c4_2
lerc                      3.0                  hd77b12b_0
libdeflate                1.17                 h2bbff1b_0
libopencv                 3.4.2                h20b85fd_0
libpng                    1.6.39               h8cc25b3_0
libtiff                   4.5.0                h8a3f274_0
libuv                     1.44.2               h2bbff1b_0
lz4-c                     1.9.4                h2bbff1b_0
make                      0.1.6.post2              pypi_0    pypi
markupsafe                2.0.1                    pypi_0    pypi
mkl                       2020.2                      256
mkl-service               2.3.0            py36h196d8e1_0
mkl_fft                   1.3.0            py36h46781fe_0
mkl_random                1.1.1            py36h47e9c7a_0
moviepy                   1.0.3                    pypi_0    pypi
ninja                     1.10.2               haa95532_5
ninja-base                1.10.2               h6d14046_5
numpy                     1.19.2           py36hadc3359_0
numpy-base                1.19.2           py36ha3acd2a_0
olefile                   0.46                     py36_0
opencv                    3.4.2            py36h40b0b35_0
packaging                 21.3                     pypi_0    pypi
pillow                    8.4.0                    pypi_0    pypi
pip                       21.3.1                   pypi_0    pypi
proglog                   0.1.10                   pypi_0    pypi
protobuf                  3.19.6                   pypi_0    pypi
py-opencv                 3.4.2            py36hc319ecb_0
pyparsing                 3.0.9                    pypi_0    pypi
python                    3.6.8                h9f7ef89_7
python-dateutil           2.8.2                    pypi_0    pypi
pytorch                   1.8.0           py3.6_cuda10.2_cudnn7_0    pytorch
requests                  2.27.1                   pypi_0    pypi
scikit-build              0.16.7                   pypi_0    pypi
setuptools                59.6.0                   pypi_0    pypi
six                       1.16.0             pyhd3eb1b0_1
sqlite                    3.41.2               h2bbff1b_0
tk                        8.6.12               h2bbff1b_0
torchaudio                0.8.0                      py36    pytorch
torchvision               0.9.0                py36_cu102    pytorch
tqdm                      4.64.1                   pypi_0    pypi
typing_extensions         4.1.1              pyh06a4308_0
urllib3                   1.26.15                  pypi_0    pypi
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wheel                     0.37.1             pyhd3eb1b0_0
wincertstore              0.2              py36h7fe50ca_0
xz                        5.2.10               h8cc25b3_1
zipp                      3.6.0                    pypi_0    pypi
zlib                      1.2.13               h8cc25b3_0
zstd                      1.5.5                hd43e919_0
Sorryk commented 1 year ago

Getting the same error while trying to instal this package

gillesvandevoorde commented 1 year ago

Resolved it:

Running GTX3060ti with cuda12.0 on windows 11

Liam6666 commented 1 year ago

mark

debugrobot commented 1 month ago

https://blog.csdn.net/LPMYM/article/details/134777873】参考博客,似乎是在python3.6版本下,默认安装最新版opencv导致,可以尝试先运行:【pip install opencv-python==4.3.0.38】再运行【pip install insightface==0.2.1】