when I install dlib this error occurs. I have Microsoft visual c++ 15 installed and I use python 3.7
how to solve this problem
ERROR: Command errored out with exit status 1:
command: 'c:usersarunappdatalocalprogramspythonpython37python.exe' -u -c 'import
sys, setuptools, tokenize; sys.argv[0] = '"'"'C:UsersArunAppDataLocalTemppip-ins
tall-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4bsetup.py'"'"'; file='"'"'C:Users
ArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4bset
up.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'
n'"'"', '"'"' '"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --reco
rd 'C:UsersArunAppDataLocalTemppip-record-prlmpx1hinstall-record.txt' --single-version
-externally-managed --compile --install-headers 'c:usersarunappdatalocalprogramspython
python37Includedlib'
cwd: C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df
02cb4f909e4b
Complete output (57 lines):
running install
running build
running build_py
package init file 'toolspythondlib_init_.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC
v.1900 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2
eee917da90a4678b1df02cb4f909e4boolspython -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:UsersArunA
ppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4buildlib.win-am
d64-3.7 -DPYTHON_EXECUTABLE=c:usersarunappdatalocalprogramspythonpython37python.exe -
DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:UsersArunAppDataLocalTemppip-install-lmmcwnu_
dlib_2eee917da90a4678b1df02cb4f909e4buildlib.win-amd64-3.7 -A x64'
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version to target Windows 6.3.9600.
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:14 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:14 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, errors occurred!
See also "C:/Users/Arun/AppData/Local/Temp/pip-install-lmmcwnu_/dlib_2eee917da90a4678b1df
02cb4f909e4b/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
See also "C:/Users/Arun/AppData/Local/Temp/pip-install-lmmcwnu_/dlib_2eee917da90a4678b1df
02cb4f909e4b/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "", line 1, in
File "C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02
cb4f909e4bsetup.py", line 262, in
'Topic :: Software Development',
File "c:usersarunappdatalocalprogramspythonpython37libsite-packagessetuptools
_init_.py", line 145, in setup
return distutils.core.setup(**attrs)
File "c:usersarunappdatalocalprogramspythonpython37libdistutilscore.py", line
148, in setup
dist.run_commands()
File "c:usersarunappdatalocalprogramspythonpython37libdistutilsdist.py", line
966, in run_commands
self.run_command(cmd)
File "c:usersarunappdatalocalprogramspythonpython37libdistutilsdist.py", line 985, in run_command cmd_obj.run()
File "c:usersarunappdatalocalprogramspythonpython37libsite-packagessetuptoolscommandinstall.py", line 61, in run return orig.install.run(self)
File "c:usersarunappdatalocalprogramspythonpython37libdistutilscommandinstall.py", line 545, in run
self.run_command('build')
File "c:usersarunappdatalocalprogramspythonpython37libdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:usersarunappdatalocalprogramspythonpython37libdistutilsdist.py", line 985, in run_command cmd_obj.run()
File "c:usersarunappdatalocalprogramspythonpython37libdistutilscommanduild.py", line 135, in run self.run_command(cmd_name)
File "c:usersarunappdatalocalprogramspythonpython37libdistutilscmd.py", line 313, in run_command self.distribution.run_command(command)
File "c:usersarunappdatalocalprogramspythonpython37libdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4bsetup.py", line 135, in run self.build_extension(ext)
File "C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4bsetup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "c:usersarunappdatalocalprogramspythonpython37libsubprocess.py", line 363, in check_call raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4boolspython', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4buildlib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=c:usersarunappdatalocalprogramspythonpython37python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02c
b4f909e4buildlib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
ERROR: Command errored out with exit status 1: 'c:usersarunappdatalocalprogramspythonpython37python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4bsetup.py'"'"'; file='"'"'C:UsersArunAppDataLocalTemppip-install-lmmcwnu_dlib_2eee917da90a4678b1df02cb4f909e4bsetup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"' '"'"', '"'"' '"'"');f.close();exec(compile(code, file,
'"'"'exec'"'"'))' install --record 'C:UsersArunAppDataLocalTemppip-record-prlmpx1hinstall-record.txt' --single-version-externally-managed --compile --install-headers 'c:usersarunappdatalocalprogramspythonpython37Includedlib' Check the logs for full command output.