I am having a huge error on installing face_recognition. I tried python -m pip install face_recognition
in the terminal and I also tried pip3 install face_recognition
as well as pip install face_recognition
. I have no idea what to do and I am getting an error while building wheel for dlib (setup.py). This is the full thing:-
ERROR: Command errored out with exit status 1:
command: 'C:UsersIamOmAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\IamOm\AppData\Local\Temp\pip-install-ulht78ry\dlib_7953cb5ea1714420b8441816f930d73b\setup.py'"'"'; __file__='"'"'C:\Users\IamOm\AppData\Local\Temp\pip-install-ulht78ry\dlib_7953cb5ea1714420b8441816f930d73b\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersIamOmAppDataLocalTemppip-wheel-wiu22jp0'
cwd: C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73b
Complete output (53 lines):
running bdist_wheel
running build
running build_py
package init file 'toolspythondlib\__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.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.1776.0_x64__qbz5n2kfra8p0libsubprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.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.1776.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
Next, I had another exception:-
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 223, in <module>
setup(
File "C:UsersIamOmAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38site-packagessetuptools\__init__.py", line 163, in setup
return distutils.core.setup(**attrs)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscore.py", line 148, in setup
dist.run_commands()
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 966, in run_commands
self.run_command(cmd)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:UsersIamOmAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38site-packageswheeldist_wheel.py", line 290, in run
self.run_command('build')
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscommanduild.py", line 135, in run
self.run_command(cmd_name)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 122, in get_cmake_version
raise RuntimeError("
*******************************************************************
" +
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: _dlib_pybind11
*******************************************************************
I already have CMake installed on my system without any errors, still I get this.
ERROR: Failed building wheel for dlib
Then it ran setup.py clean for dlib:-
Running setup.py clean for dlib
Failed to build dlib
Then it ran setup.py
install for dlib
:-
Running setup.py
install for dlib
... error
ERROR: Command errored out with exit status 1:
command: 'C:UsersIamOmAppDataLocalMicrosoftWindowsAppsPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\IamOm\AppData\Local\Temp\pip-install-ulht78ry\dlib_7953cb5ea1714420b8441816f930d73b\setup.py'"'"'; __file__='"'"'C:\Users\IamOm\AppData\Local\Temp\pip-install-ulht78ry\dlib_7953cb5ea1714420b8441816f930d73b\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'
'"'"', '"'"'
'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersIamOmAppDataLocalTemppip-record-3tst66j8install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:UsersIamOmAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38Includedlib'
cwd: C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73b
Complete output (55 lines):
running install
running build
running build_py
package init file 'toolspythondlib\__init__.py' not found (or not a regular file)
running build_ext
Traceback (most recent call last):
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 120, in get_cmake_version
out = subprocess.check_output(['cmake', '--version'])
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.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.1776.0_x64__qbz5n2kfra8p0libsubprocess.py", line 489, in run
with Popen(*popenargs, **kwargs) as process:
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.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.1776.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
And then another exception:-
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 223, in <module>
setup(
File "C:UsersIamOmAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38site-packagessetuptools\__init__.py", line 163, in setup
return distutils.core.setup(**attrs)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscore.py", line 148, in setup
dist.run_commands()
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 966, in run_commands
self.run_command(cmd)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:UsersIamOmAppDataLocalPackagesPythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0LocalCachelocal-packagesPython38site-packagessetuptoolscommandinstall.py", line 61, in run
return orig.install.run(self)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscommandinstall.py", line 545, in run
self.run_command('build')
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscommanduild.py", line 135, in run
self.run_command(cmd_name)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:Program FilesWindowsAppsPythonSoftwareFoundation.Python.3.8_3.8.1776.0_x64__qbz5n2kfra8p0libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 129, in run
cmake_version = self.get_cmake_version()
File "C:UsersIamOmAppDataLocalTemppip-install-ulht78rydlib_7953cb5ea1714420b8441816f930d73bsetup.py", line 122, in get_cmake_version
raise RuntimeError("
*******************************************************************
" +
RuntimeError:
*******************************************************************
CMake must be installed to build the following extensions: _dlib_pybind11
*******************************************************************
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:UsersIa