TransWikia.com

What is going on here when I try installing the facial recognition library?

Stack Overflow Asked by Peter Kates on December 3, 2021

C:UsersPeter>pip install face-recognition
Collecting face-recognition
  Using cached face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: face-recognition-models>=0.3.0 in c:userspeterappdatalocalpackagespythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0localcachelocal-packagespython38site-packages (from face-recognition) (0.3.0)
Requirement already satisfied: numpy in c:userspeterappdatalocalpackagespythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0localcachelocal-packagespython38site-packages (from face-recognition) (1.19.1)
Requirement already satisfied: Pillow in c:userspeterappdatalocalpackagespythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0localcachelocal-packagespython38site-packages (from face-recognition) (7.2.0)
Collecting dlib>=19.7
  Using cached dlib-19.20.0.tar.gz (3.2 MB)
Requirement already satisfied: Click>=6.0 in c:userspeterappdatalocalpackagespythonsoftwarefoundation.python.3.8_qbz5n2kfra8p0localcachelocal-packagespython38site-packages (from face-recognition) (7.1.2)
Using legacy setup.py install for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib, face-recognition
    Running setup.py install for dlib ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:UsersPeterAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\setup.py'"'"'; __file__='"'"'C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersPeterAppDataLocalTemppip-record-s9fezs_8install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:UsersPeterAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38Includedlib'
         cwd: C:UsersPeterAppDataLocalTemppip-install-1wn8ktikdlib
    Complete output (55 lines):
    running install
    running build
    running build_py
    package init file 'dlib__init__.py' not found (or not a regular file)
    running build_ext
    Traceback (most recent call last):
      File "C:UsersPeterAppDataLocalTemppip-install-1wn8ktikdlibsetup.py", line 120, in get_cmake_version
        out = subprocess.check_output(['cmake', '--version'])
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libsubprocess.py", line 411, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libsubprocess.py", line 489, in run
        with Popen(*popenargs, **kwargs) as process:
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libsubprocess.py", line 854, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libsubprocess.py", line 1307, in _execute_child
        hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
    FileNotFoundError: [WinError 2] The system cannot find the file specified

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:UsersPeterAppDataLocalTemppip-install-1wn8ktikdlibsetup.py", line 223, in <module>
        setup(
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libsite-packagessetuptools__init__.py", line 144, in setup
        return distutils.core.setup(**attrs)
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilscore.py", line 148, in setup
        dist.run_commands()
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 966, in run_commands
        self.run_command(cmd)
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libsite-packagessetuptoolscommandinstall.py", line 61, in run
        return orig.install.run(self)
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilscommandinstall.py", line 545, in run
        self.run_command('build')
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilscommandbuild.py", line 135, in run
        self.run_command(cmd_name)
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1520.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "C:UsersPeterAppDataLocalTemppip-install-1wn8ktikdlibsetup.py", line 129, in run
        cmake_version = self.get_cmake_version()
      File "C:UsersPeterAppDataLocalTemppip-install-1wn8ktikdlibsetup.py", line 122, in get_cmake_version
        raise RuntimeError("n*******************************************************************n" +
    RuntimeError:
    *******************************************************************
     CMake must be installed to build the following extensions: dlib
    *******************************************************************

    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:UsersPeterAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\setup.py'"'"'; __file__='"'"'C:\Users\Peter\AppData\Local\Temp\pip-install-1wn8ktik\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersPeterAppDataLocalTemppip-record-s9fezs_8install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:UsersPeterAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38Includedlib' Check the logs for full command output.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP