python - Errors while installing dlib library via pip -


i have no idea going wrong this. followed tutorial install dlib.

here both way , errors got. installed other known dependencies cmake, gcc, opencv. downloaded dlib 19.6 dlib's official website. python version 2.7. os: windows 10.

here error log cmd prompt both way installation.

c:\dlib-19.6\dlib-19.6>python setup.py install running install running bdist_egg running build detected python architecture: 32bit detected platform: win32 removing build directory c:\dlib-19.6\dlib-19.6\./tools/python/build configuring cmake ... -- building for: visual studio 14 2015 cmake error in cmakelists.txt:   failed run msbuild command:     c:/program files (x86)/msbuild/14.0/bin/msbuild.exe   value of vctargetspath:     microsoft (r) build engine version 14.0.25420.1     copyright (c) microsoft corporation. rights reserved.     build started 10-sep-17 7:18:01 pm.     project "c:\dlib-19.6\dlib-19.6\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" on node 1 (default targets).     c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v140\platforms\win32\platformtoolsets\v140\toolset.targets(34,5): error msb8036: windows sdk version 8.1 not found. install required version of windows sdk or change sdk version in project property pages or right-clicking solution , selecting "retarget solution". [c:\dlib-19.6\dlib-19.6\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj]     done building project "c:\dlib-19.6\dlib-19.6\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" (default targets) -- failed.     build failed.     "c:\dlib-19.6\dlib-19.6\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" (default target) (1) ->     (desktop_platformprepareforbuild target) ->       c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v140\platforms\win32\platformtoolsets\v140\toolset.targets(34,5): error msb8036: windows sdk version 8.1 not found. install required version of windows sdk or change sdk version in project property pages or right-clicking solution , selecting "retarget solution". [c:\dlib-19.6\dlib-19.6\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj] error: cmake configuration failed!  c:\dlib-19.6\dlib-19.6> 

via python package installer

c:\users\hp>pip install dlib collecting dlib   using cached dlib-19.6.1.tar.gz building wheels collected packages: dlib   running setup.py bdist_wheel dlib ... error   complete output command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\hp\\appdata\\local\\temp\\pip-build-vwayhd\\dlib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d c:\users\hp\appdata\local\temp\tmp7vtii4pip-wheel- --python-tag cp27:   running bdist_wheel   running build   detected python architecture: 32bit   detected platform: win32   configuring cmake ...   -- building for: visual studio 14 2015   cmake error in cmakelists.txt:     failed run msbuild command:       c:/program files (x86)/msbuild/14.0/bin/msbuild.exe     value of vctargetspath:       microsoft (r) build engine version 14.0.25420.1       copyright (c) microsoft corporation. rights reserved.       build started 10-sep-17 7:28:49 pm.       project "c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" on node 1 (default targets).       c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v140\platforms\win32\platformtoolsets\v140\toolset.targets(34,5): error msb8036: windows sdk version 8.1 not found. install required version of windows sdk or change sdk version in project property pages or right-clicking solution , selecting "retarget solution". [c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj]       done building project "c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" (default targets) -- failed.       build failed.       "c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" (default target) (1) ->       (desktop_platformprepareforbuild target) ->         c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v140\platforms\win32\platformtoolsets\v140\toolset.targets(34,5): error msb8036: windows sdk version 8.1 not found. install required version of windows sdk or change sdk version in project property pages or right-clicking solution , selecting "retarget solution". [c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj]           0 warning(s)           1 error(s)       time elapsed 00:00:00.71     exit code: 1   -- configuring incomplete, errors occurred!   see "c:/users/hp/appdata/local/temp/pip-build-vwayhd/dlib/tools/python/build/cmakefiles/cmakeoutput.log".   error: cmake configuration failed!    ----------------------------------------   failed building wheel dlib   running setup.py clean dlib failed build dlib installing collected packages: dlib   running setup.py install dlib ... error     complete output command c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\hp\\appdata\\local\\temp\\pip-build-vwayhd\\dlib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\hp\appdata\local\temp\pip-7vl1fy-record\install-record.txt --single-version-externally-managed --compile:     running install     running build     detected python architecture: 32bit     detected platform: win32     removing build directory c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\./tools/python/build     configuring cmake ...     -- building for: visual studio 14 2015     cmake error in cmakelists.txt:       failed run msbuild command:         c:/program files (x86)/msbuild/14.0/bin/msbuild.exe       value of vctargetspath:         microsoft (r) build engine version 14.0.25420.1         copyright (c) microsoft corporation. rights reserved.         build started 10-sep-17 7:28:52 pm.         project "c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" on node 1 (default targets).         c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v140\platforms\win32\platformtoolsets\v140\toolset.targets(34,5): error msb8036: windows sdk version 8.1 not found. install required version of windows sdk or change sdk version in project property pages or right-clicking solution , selecting "retarget solution". [c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj]         done building project "c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" (default targets) -- failed.         build failed.         "c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj" (default target) (1) ->         (desktop_platformprepareforbuild target) ->           c:\program files (x86)\msbuild\microsoft.cpp\v4.0\v140\platforms\win32\platformtoolsets\v140\toolset.targets(34,5): error msb8036: windows sdk version 8.1 not found. install required version of windows sdk or change sdk version in project property pages or right-clicking solution , selecting "retarget solution". [c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\tools\python\build\cmakefiles\3.9.0\vctargetspath.vcxproj]             0 warning(s)             1 error(s)         time elapsed 00:00:00.73       exit code: 1     -- configuring incomplete, errors occurred!     see "c:/users/hp/appdata/local/temp/pip-build-vwayhd/dlib/tools/python/build/cmakefiles/cmakeoutput.log".     error: cmake configuration failed!      ---------------------------------------- command "c:\python27\python.exe -u -c "import setuptools, tokenize;__file__='c:\\users\\hp\\appdata\\local\\temp\\pip-build-vwayhd\\dlib\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record c:\users\hp\appdata\local\temp\pip-7vl1fy-record\install-record.txt --single-version-externally-managed --compile" failed error code 1 in c:\users\hp\appdata\local\temp\pip-build-vwayhd\dlib\ 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -