Ошибка установки dlib

I am trying to install OpenCV, dlib on Windows 10 on Anaconda Python 3.7.

I have installed Visual studio 2015 as prerequisite along with CMake. When I am trying to install dlib on my computer it is giving me below error. I am also not able to install OpenCV. I tried installing the dlib using .whl file. But, still no luck.

Collecting dlib
  Using cached https://files.pythonhosted.org/packages/1e/62/aacb236d21fbd08148b1d517d58a9d80ea31bdcd386d26f21f8b23b1eb28/dlib-19.18.0.tar.gz
Building wheels for collected packages: dlib
  Building wheel for dlib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envpython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\setup.py'"'"'; __file__='"'"'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:Usersdbi227AppDataLocalTemppip-wheel-2nm313mu' --python-tag cp37
       cwd: C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlib
  Complete output (73 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'dlib__init__.py' not found (or not a regular file)
  running build_ext
  Building extension for Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
  Invoking CMake setup: 'cmake C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibtoolspython -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildlib.win-amd64-3.7 -DPYTHON_EXECUTABLE=C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envpython.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildlib.win-amd64-3.7 -A x64'
  -- Building for: Visual Studio 14 2015
  -- Selecting Windows SDK version  to target Windows 10.0.17763.
  CMake Error at CMakeLists.txt:3 (project):
    Failed to run MSBuild command:

      C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe

    to get the value of VCTargetsPath:

      Microsoft (R) Build Engine version 14.0.25420.1
      Copyright (C) Microsoft Corporation. All rights reserved.

      Build started 10/23/2019 9:27:01 AM.
      Project "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj" on node 1 (default targets).
      C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Platformsx64PlatformToolsetsv140Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj]
      Done Building Project "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj" (default targets) -- FAILED.

      Build FAILED.

      "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj" (default target) (1) ->
      (Desktop_PlatformPrepareForBuild target) ->
        C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Platformsx64PlatformToolsetsv140Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj]

          0 Warning(s)
          1 Error(s)

      Time Elapsed 00:00:00.51


    Exit code: 1



  -- Configuring incomplete, errors occurred!
  See also "C:/Users/dbi227/AppData/Local/Temp/pip-install-9vjrsx_l/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibsetup.py", line 261, in <module>
      'Topic :: Software Development',
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibsite-packagessetuptools__init__.py", line 145, in setup
      return distutils.core.setup(**attrs)
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscore.py", line 148, in setup
      dist.run_commands()
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 966, in run_commands
      self.run_command(cmd)
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 985, in run_command
      cmd_obj.run()
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibsite-packageswheelbdist_wheel.py", line 192, in run
      self.run_command('build')
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 985, in run_command
      cmd_obj.run()
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscommandbuild.py", line 135, in run
      self.run_command(cmd_name)
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 985, in run_command
      cmd_obj.run()
    File "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibsetup.py", line 135, in run
      self.build_extension(ext)
    File "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibsetup.py", line 172, in build_extension
      subprocess.check_call(cmake_setup, cwd=build_folder)
    File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibsubprocess.py", line 347, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', 'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\build\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=C:\Users\dbi227\AppData\Local\Continuum\anaconda3\envs\opencv-env\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\build\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for dlib
  Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
    Running setup.py install for dlib ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envpython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\setup.py'"'"'; __file__='"'"'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\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:Usersdbi227AppDataLocalTemppip-record-3ic8n66vinstall-record.txt' --single-version-externally-managed --compile
         cwd: C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlib
    Complete output (75 lines):
    running install
    running build
    running build_py
    package init file 'dlib__init__.py' not found (or not a regular file)
    running build_ext
    Building extension for Python 3.7.4 (default, Aug  9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)]
    Invoking CMake setup: 'cmake C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibtoolspython -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildlib.win-amd64-3.7 -DPYTHON_EXECUTABLE=C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envpython.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildlib.win-amd64-3.7 -A x64'
    -- Building for: Visual Studio 14 2015
    -- Selecting Windows SDK version  to target Windows 10.0.17763.
    CMake Error at CMakeLists.txt:3 (project):
      Failed to run MSBuild command:

        C:/Program Files (x86)/MSBuild/14.0/bin/MSBuild.exe

      to get the value of VCTargetsPath:

        Microsoft (R) Build Engine version 14.0.25420.1
        Copyright (C) Microsoft Corporation. All rights reserved.

        Build started 10/23/2019 9:27:03 AM.
        Project "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj" on node 1 (default targets).
        C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Platformsx64PlatformToolsetsv140Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj]
        Done Building Project "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj" (default targets) -- FAILED.

        Build FAILED.

        "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj" (default target) (1) ->
        (Desktop_PlatformPrepareForBuild target) ->
          C:Program Files (x86)MSBuildMicrosoft.Cppv4.0V140Platformsx64PlatformToolsetsv140Toolset.targets(36,5): error MSB8036: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". [C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibbuildtemp.win-amd64-3.7ReleaseCMakeFiles3.15.3VCTargetsPath.vcxproj]

            0 Warning(s)
            1 Error(s)

        Time Elapsed 00:00:00.10


      Exit code: 1



    -- Configuring incomplete, errors occurred!
    See also "C:/Users/dbi227/AppData/Local/Temp/pip-install-9vjrsx_l/dlib/build/temp.win-amd64-3.7/Release/CMakeFiles/CMakeOutput.log".
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibsetup.py", line 261, in <module>
        'Topic :: Software Development',
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibsite-packagessetuptools__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscore.py", line 148, in setup
        dist.run_commands()
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 966, in run_commands
        self.run_command(cmd)
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibsite-packagessetuptoolscommandinstall.py", line 61, in run
        return orig.install.run(self)
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscommandinstall.py", line 545, in run
        self.run_command('build')
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscommandbuild.py", line 135, in run
        self.run_command(cmd_name)
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilscmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibsetup.py", line 135, in run
        self.build_extension(ext)
      File "C:Usersdbi227AppDataLocalTemppip-install-9vjrsx_ldlibsetup.py", line 172, in build_extension
        subprocess.check_call(cmake_setup, cwd=build_folder)
      File "C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envlibsubprocess.py", line 347, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', 'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\build\lib.win-amd64-3.7', '-DPYTHON_EXECUTABLE=C:\Users\dbi227\AppData\Local\Continuum\anaconda3\envs\opencv-env\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\build\lib.win-amd64-3.7', '-A', 'x64']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:Usersdbi227AppDataLocalContinuumanaconda3envsopencv-envpython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\dlib\setup.py'"'"'; __file__='"'"'C:\Users\dbi227\AppData\Local\Temp\pip-install-9vjrsx_l\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:Usersdbi227AppDataLocalTemppip-record-3ic8n66vinstall-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

При использовании команды:

pip install dlib 

Выдает ошибку:

"c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 966, in run_commands
self.run_command(cmd)
File "c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "c:userseezbeappdatalocalprogramsthonnylibsite-packagessetuptoolscommandinstall.py", line 61, in run
return orig.install.run(self)
File "c:userseezbeappdatalocalprogramsthonnylibdistutilscommandinstall.py", line 545, in run
self.run_command('build')
File "c:userseezbeappdatalocalprogramsthonnylibdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "c:userseezbeappdatalocalprogramsthonnylibdistutilscommandbuild.py", line 135, in run
self.run_command(cmd_name)
File "c:userseezbeappdatalocalprogramsthonnylibdistutilscmd.py", line 313, in run_command
self.distribution.run_command(command)
File "c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 985, in run_command
cmd_obj.run()
File "C:UserseezbeAppDataLocalTemppip-install-kcgx0v3tdlibsetup.py", line 135, in run
self.build_extension(ext)
File "C:UserseezbeAppDataLocalTemppip-install-kcgx0v3tdlibsetup.py", line 172, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "c:userseezbeappdatalocalprogramsthonnylibsubprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\eezbe\AppData\Local\Temp\pip-install-kcgx0v3t\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\eezbe\AppData\Local\Temp\pip-install-kcgx0v3t\dlib\build\lib.win32-3.7', '-DPYTHON_EXECUTABLE=c:\users\eezbe\appdata\local\programs\thonny\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\eezbe\AppData\Local\Temp\pip-install-kcgx0v3t\dlib\build\lib.win32-3.7']' returned non-zero exit status 1.
—--------------------------------------
ERROR: Command errored out with exit status 1: 'c:userseezbeappdatalocalprogramsthonnypython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\eezbe\AppData\Local\Temp\pip-install-kcgx0v3t\dlib\setup.py'"'"'; __file__='"'"'C:\Users\eezbe\AppData\Local\Temp\pip-install-kcgx0v3t\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:UserseezbeAppDataLocalTemppip-record-6joaylx3install-record.txt' —single-version-externally-managed —compile —install-headers 'c:userseezbeappdatalocalprogramsthonnyIncludedlib' Check the logs for full command output.

Как я могу это исправить?


UPD

Collecting dlib
  Using cached dlib-19.20.0.tar.gz (3.2 MB)
Using legacy setup.py install for dlib, since package 'wheel' is not installed.
Installing collected packages: dlib
    Running setup.py install for dlib ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:userseezbeappdatalocalprogramsthonnypython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\eezbe\AppData\Local\Temp\pip-install-izoqttv6\dlib\setup.py'"'"'; __file__='"'"'C:\Users\eezbe\AppData\Local\Temp\pip-install-izoqttv6\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:UserseezbeAppDataLocalTemppip-record-4ohgzi59install-record.txt' --single-version-externally-managed --compile --install-headers 'c:userseezbeappdatalocalprogramsthonnyIncludedlib'
         cwd: C:UserseezbeAppDataLocalTemppip-install-izoqttv6dlib
    Complete output (65 lines):
    running install
    running build
    running build_py
    package init file 'dlib__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, 09:44:33) [MSC v.1900 32 bit (Intel)]
    Invoking CMake setup: 'cmake C:UserseezbeAppDataLocalTemppip-install-izoqttv6dlibtoolspython -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:UserseezbeAppDataLocalTemppip-install-izoqttv6dlibbuildlib.win32-3.7 -DPYTHON_EXECUTABLE=c:userseezbeappdatalocalprogramsthonnypython.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:UserseezbeAppDataLocalTemppip-install-izoqttv6dlibbuildlib.win32-3.7'
    -- Building for: Visual Studio 16 2019
    -- The C compiler identification is MSVC 19.26.28806.0
    -- The CXX compiler identification is MSVC 19.26.28806.0
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe
    -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe
    -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Tools/MSVC/14.26.28801/bin/Hostx64/x64/cl.exe - works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Found PythonInterp: C:/Users/eezbe/AppData/Local/Programs/Thonny/python.exe (found version "3.7.7")
    CMake Error at C:/Users/eezbe/AppData/Local/Temp/pip-install-izoqttv6/dlib/dlib/external/pybind11/tools/FindPythonLibsNew.cmake:124 (message):
      Python config failure: Python is 32-bit, chosen compiler is 64-bit
    Call Stack (most recent call first):
      C:/Users/eezbe/AppData/Local/Temp/pip-install-izoqttv6/dlib/dlib/external/pybind11/tools/pybind11Tools.cmake:16 (find_package)
      C:/Users/eezbe/AppData/Local/Temp/pip-install-izoqttv6/dlib/dlib/external/pybind11/CMakeLists.txt:33 (include)


    -- Configuring incomplete, errors occurred!
    See also "C:/Users/eezbe/AppData/Local/Temp/pip-install-izoqttv6/dlib/build/temp.win32-3.7/Release/CMakeFiles/CMakeOutput.log".
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:UserseezbeAppDataLocalTemppip-install-izoqttv6dlibsetup.py", line 261, in <module>
        'Topic :: Software Development',
      File "c:userseezbeappdatalocalprogramsthonnylibsite-packagessetuptools__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilscore.py", line 148, in setup
        dist.run_commands()
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 966, in run_commands
        self.run_command(cmd)
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "c:userseezbeappdatalocalprogramsthonnylibsite-packagessetuptoolscommandinstall.py", line 61, in run
        return orig.install.run(self)
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilscommandinstall.py", line 545, in run
        self.run_command('build')
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilscmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilscommandbuild.py", line 135, in run
        self.run_command(cmd_name)
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilscmd.py", line 313, in run_command
        self.distribution.run_command(command)
      File "c:userseezbeappdatalocalprogramsthonnylibdistutilsdist.py", line 985, in run_command
        cmd_obj.run()
      File "C:UserseezbeAppDataLocalTemppip-install-izoqttv6dlibsetup.py", line 135, in run
        self.build_extension(ext)
      File "C:UserseezbeAppDataLocalTemppip-install-izoqttv6dlibsetup.py", line 172, in build_extension
        subprocess.check_call(cmake_setup, cwd=build_folder)
      File "c:userseezbeappdatalocalprogramsthonnylibsubprocess.py", line 363, in check_call
        raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command '['cmake', 'C:\Users\eezbe\AppData\Local\Temp\pip-install-izoqttv6\dlib\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\eezbe\AppData\Local\Temp\pip-install-izoqttv6\dlib\build\lib.win32-3.7', '-DPYTHON_EXECUTABLE=c:\users\eezbe\appdata\local\programs\thonny\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\eezbe\AppData\Local\Temp\pip-install-izoqttv6\dlib\build\lib.win32-3.7']' returned non-zero exit status 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:userseezbeappdatalocalprogramsthonnypython.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\eezbe\AppData\Local\Temp\pip-install-izoqttv6\dlib\setup.py'"'"'; __file__='"'"'C:\Users\eezbe\AppData\Local\Temp\pip-install-izoqttv6\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:UserseezbeAppDataLocalTemppip-record-4ohgzi59install-record.txt' --single-version-externally-managed --compile --install-headers 'c:userseezbeappdatalocalprogramsthonnyIncludedlib' Check the logs for full command output.

Всем привет, возникает вот такая ошибка при установке dlib.
Сайты из за бугра не помогли, прошу помощи у наших русских богатырей.

C:UsersВладиславDownloads>pip install dlib
Collecting dlib
  Using cached dlib-19.19.0.tar.gz (3.2 MB)
Building wheels for collected packages: dlib
  Building wheel for dlib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:usersвладиславappdatalocalprogramspythonpython37python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\4918~1\AppData\Local\Temp\pip-install-5f9hhllb\dlib\setup.py'"'"'; __file__='"'"'C:\Users\4918~1\AppData\Local\Temp\pip-install-5f9hhllb\dlib\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:Users4918~1AppDataLocalTemppip-wheel-mwdn_6pi'
       cwd: C:Users4918~1AppDataLocalTemppip-install-5f9hhllbdlib
  Complete output (64 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'dlib__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:Users4918~1AppDataLocalTemppip-install-5f9hhllbdlibtoolspython -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:Users4918~1AppDataLocalTemppip-install-5f9hhllbdlibbuildlib.win-amd64-3.7 -DPYTHON_EXECUTABLE=c:usersвладиславappdatalocalprogramspythonpython37python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:Users4918~1AppDataLocalTemppip-install-5f9hhllbdlibbuildlib.win-amd64-3.7 -A x64'
  -- Building for: Visual Studio 16 2019
  -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363.
  -- The C compiler identification is MSVC 19.25.28614.0
  -- The CXX compiler identification is MSVC 19.25.28614.0
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
  -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe
  -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found PythonInterp: C:/Users/Владислав/AppData/Local/Programs/Python/Python37/python.exe (found version "3.7.7")
  CMake Error at C:/Users/Владислав/AppData/Local/Temp/pip-install-5f9hhllb/dlib/dlib/external/pybind11/tools/FindPythonLibsNew.cmake:158 (message):
    Python libraries not found
  Call Stack (most recent call first):
    C:/Users/Владислав/AppData/Local/Temp/pip-install-5f9hhllb/dlib/dlib/external/pybind11/tools/pybind11Tools.cmake:16 (find_package)
    C:/Users/Владислав/AppData/Local/Temp/pip-install-5f9hhllb/dlib/dlib/external/pybind11/CMakeLists.txt:33 (include)

5e9ac75e0ddae945473146.png5e9ac76d9ffc7055061710.png5e9ac77100bbf964909379.png5e9ac796af9ee046060934.png

Expected Behavior

Expected dlib to be instalable on Windows 10 running Python 3.6 (as a conda virtual env) with command: pip install dlib. Have installed cmake and numpy as prerequisites. This failed with:

(py36) PS C:UsersJean Claude> pip install dlib
Collecting dlib
Using cached dlib-19.22.0.tar.gz (7.4 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) … error
ERROR: Command errored out with exit status 1:
command: ‘C:UsersJean Claudeanaconda3envspy36python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py'»‘»‘; file='»‘»‘C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ bdist_wheel -d ‘C:UsersJEANCL1AppDataLocalTemppip-wheel-03d14jpb’
cwd: C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242b
Complete output (58 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
Building extension for Python 3.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: ‘cmake C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242btoolspython -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bbuildlib.win-amd64-3.6 -DPYTHON_EXECUTABLE=C:UsersJean Claudeanaconda3envspy36python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:UsersJEANCL~1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bbuildlib.win-amd64-3.6 -A x64’
— Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


You must use Visual Studio to build a python extension on windows.  If you
are getting this error it means you have not installed Visual C++.  Note
that there are many flavors of Visual Studio, like Visual Studio for C#
development.  You need to install Visual Studio for C++.


!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

— Configuring incomplete, errors occurred!
Traceback (most recent call last):
File «», line 1, in
File «C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py», line 261, in
‘Topic :: Software Development’,
File «C:UsersJean Claudeanaconda3envspy36libsite-packagessetuptools_init_.py», line 153, in setup
return distutils.core.setup(**attrs)
File «C:UsersJean Claudeanaconda3envspy36libdistutilscore.py», line 148, in setup
dist.run_commands()
File «C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py», line 955, in run_commands
self.run_command(cmd)
File «C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py», line 974, in run_command
cmd_obj.run()
File «C:UsersJean Claudeanaconda3envspy36libsite-packageswheelbdist_wheel.py», line 299, in run
self.run_command(‘build’)
File «C:UsersJean Claudeanaconda3envspy36libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py», line 974, in run_command
cmd_obj.run()
File «C:UsersJean Claudeanaconda3envspy36libdistutilscommandbuild.py», line 135, in run
self.run_command(cmd_name)
File «C:UsersJean Claudeanaconda3envspy36libdistutilscmd.py», line 313, in run_command
self.distribution.run_command(command)
File «C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py», line 974, in run_command
cmd_obj.run()
File «C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py», line 134, in run
self.build_extension(ext)
File «C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py», line 171, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File «C:UsersJean Claudeanaconda3envspy36libsubprocess.py», line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘cmake’, ‘C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242btoolspython’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bbuildlib.win-amd64-3.6’, ‘-DPYTHON_EXECUTABLE=C:UsersJean Claudeanaconda3envspy36python.exe’, ‘-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bbuildlib.win-amd64-3.6’, ‘-A’, ‘x64′]’ returned non-zero exit status 1.

ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib … error
ERROR: Command errored out with exit status 1:
command: ‘C:UsersJean Claudeanaconda3envspy36python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py'»‘»‘; file='»‘»‘C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:UsersJEANCL1AppDataLocalTemppip-record-odoruwutinstall-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:UsersJean Claudeanaconda3envspy36Includedlib’
cwd: C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242b
Complete output (60 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.6.13 |Anaconda, Inc.| (default, Mar 16 2021, 11:37:27) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: ‘cmake C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242btoolspython -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bbuildlib.win-amd64-3.6 -DPYTHON_EXECUTABLE=C:UsersJean Claudeanaconda3envspy36python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:UsersJEANCL~1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bbuildlib.win-amd64-3.6 -A x64’
— Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):

  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


  You must use Visual Studio to build a python extension on windows.  If you
  are getting this error it means you have not installed Visual C++.  Note
  that there are many flavors of Visual Studio, like Visual Studio for C#
  development.  You need to install Visual Studio for C++.


  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!




-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:UsersJEANCL~1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py", line 261, in <module>
    'Topic :: Software Development',
  File "C:UsersJean Claudeanaconda3envspy36libsite-packagessetuptools__init__.py", line 153, in setup
    return distutils.core.setup(**attrs)
  File "C:UsersJean Claudeanaconda3envspy36libdistutilscore.py", line 148, in setup
    dist.run_commands()
  File "C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py", line 955, in run_commands
    self.run_command(cmd)
  File "C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py", line 974, in run_command
    cmd_obj.run()
  File "C:UsersJean Claudeanaconda3envspy36libsite-packagessetuptoolscommandinstall.py", line 61, in run
    return orig.install.run(self)
  File "C:UsersJean Claudeanaconda3envspy36libdistutilscommandinstall.py", line 545, in run
    self.run_command('build')
  File "C:UsersJean Claudeanaconda3envspy36libdistutilscmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py", line 974, in run_command
    cmd_obj.run()
  File "C:UsersJean Claudeanaconda3envspy36libdistutilscommandbuild.py", line 135, in run
    self.run_command(cmd_name)
  File "C:UsersJean Claudeanaconda3envspy36libdistutilscmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "C:UsersJean Claudeanaconda3envspy36libdistutilsdist.py", line 974, in run_command
    cmd_obj.run()
  File "C:UsersJEANCL~1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py", line 134, in run
    self.build_extension(ext)
  File "C:UsersJEANCL~1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py", line 171, in build_extension
    subprocess.check_call(cmake_setup, cwd=build_folder)
  File "C:UsersJean Claudeanaconda3envspy36libsubprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\Users\JEANCL~1\AppData\Local\Temp\pip-install-bdv23ese\dlib_6034d75b85f2455eaa1e85e06b14242b\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\JEANCL~1\AppData\Local\Temp\pip-install-bdv23ese\dlib_6034d75b85f2455eaa1e85e06b14242b\build\lib.win-amd64-3.6', '-DPYTHON_EXECUTABLE=C:\Users\Jean Claude\anaconda3\envs\py36\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\JEANCL~1\AppData\Local\Temp\pip-install-bdv23ese\dlib_6034d75b85f2455eaa1e85e06b14242b\build\lib.win-amd64-3.6', '-A', 'x64']' returned non-zero exit status 1.
----------------------------------------

ERROR: Command errored out with exit status 1: ‘C:UsersJean Claudeanaconda3envspy36python.exe’ -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py'»‘»‘; file='»‘»‘C:UsersJEANCL1AppDataLocalTemppip-install-bdv23esedlib_6034d75b85f2455eaa1e85e06b14242bsetup.py'»‘»‘;f=getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file);code=f.read().replace(‘»‘»‘rn'»‘»‘, ‘»‘»‘n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:UsersJEANCL~1AppDataLocalTemppip-record-odoruwutinstall-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:UsersJean Claudeanaconda3envspy36Includedlib’ Check the logs for full command output.

psychologist

2 / 2 / 0

Регистрация: 01.01.2010

Сообщений: 189

1

27.03.2019, 22:46. Показов 11238. Ответов 6

Метки нет (Все метки)


Студворк — интернет-сервис помощи студентам

я пытаюсь установить пакет face_recognition

pip install face_recognition

выходит ошибка

Python
1
2
3
4
5
6
7
8
9
10
Command "c:usersСергейappdatalocalprogramspythonpython37python.exe -
u -c "import setuptools, tokenize;__file__='C:\Users\D9F8~1\AppData\Local\T
emp\pip-install-rhn9kcgv\dlib\setup.py';f=getattr(tokenize, 'open', open)(__f
ile__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__
, 'exec'))" install --record C:UsersD9F8~1AppDataLocalTemppip-record-lsr9_
rnpinstall-record.txt --single-version-externally-managed --compile" failed wit
h error code 1 in C:UsersD9F8~1AppDataLocalTemppip-install-rhn9kcgvdlib
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' comm
and.

C:Windowssystem32>

уже гуглил в инете
cmake 100 раз уже установлен
новый пип поставлен

не помогло.



0



114 / 22 / 3

Регистрация: 11.09.2017

Сообщений: 141

Записей в блоге: 4

28.03.2019, 08:51

2

psychologist, как вариант, причина может быть такая (Windows not officially supported, but might work), если конечно Вы читали документацию.



0



2 / 2 / 0

Регистрация: 01.01.2010

Сообщений: 189

28.03.2019, 13:21

 [ТС]

3

tabbols95, да я читал на гитхабе, и что теперь, получается кому как повезет? у кого-то библиотека встанет ,а у кого-то нет? )
А можно ли как поставить нужный мне package face_recognition без dlib.
На Убунту кстати все встало. Но мне Убунту не всегда удобен))



0



1286 / 671 / 365

Регистрация: 07.01.2019

Сообщений: 2,182

28.03.2019, 14:01

4

psychologist, попробуйте установить Visual Studio 2017Community Edition



0



0 / 0 / 3

Регистрация: 23.06.2018

Сообщений: 40

02.08.2020, 10:01

5

pip install —no-dependencies face_recognition



0



2400 / 872 / 122

Регистрация: 29.01.2013

Сообщений: 5,115

02.08.2020, 10:19

6

И очень сильно старайтесь, что бы в путях небыло кириллицы. Ну не любят её авторы большинства приложений, не любят!



0



Garry Galler

Эксперт Python

5407 / 3831 / 1214

Регистрация: 28.10.2013

Сообщений: 9,554

Записей в блоге: 1

02.08.2020, 16:55

7

Цитата
Сообщение от psychologist
Посмотреть сообщение

получается кому как повезет? у кого-то библиотека встанет ,а у кого-то нет?

Селяви :-)
Вот мне повезло: на семерке x64 dlib скомпилировалась без всяких танцев с бубном и следования длинной инструкции по инсталляции. Я просто предварительно установил cmake для винды.

Код

C:UsersGarry>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 f:installpython38libsite-packages (from face_recognition) (0.3.0)
Requirement already satisfied: Click>=6.0 in f:installpython38libsite-packages (from face_recognition) (7.1.2)
Requirement already satisfied: numpy in f:installpython38libsite-packages (from face_recognition) (1.18.5+mkl)
Requirement already satisfied: Pillow in f:installpython38libsite-packages (from face_recognition) (7.1.2)
Collecting dlib>=19.7
  Using cached dlib-19.20.0.tar.gz (3.2 MB)
Building wheels for collected packages: dlib
  Building wheel for dlib (setup.py) ... done
  Created wheel for dlib: filename=dlib-19.20.0-cp38-cp38-win_amd64.whl size=3640523 sha256=67c2842a6e52a45a077d0c6648ac8000fad07d1accb0
  Stored in directory: c:usersgarryappdatalocalpipcachewheelsa5822c2d2ccc604e2c2e35994b89a173d922331f1c6e1af9320a7602
Successfully built dlib
Installing collected packages: dlib, face-recognition
Successfully installed dlib-19.20.0 face-recognition-1.3.0

Python
1
2
3
4
5
6
>>> import face_recognition
>>> image = face_recognition.load_image_file("obama2.jpg")
>>> face_locations = face_recognition.face_locations(image)
>>> face_locations
[(290, 438, 558, 171)]
>>>

Добавлено через 7 минут
Ссылка на установочный Python 3.8 whl пакет со скомпилированной версией dlib для win7x64. Возможно, подойдет и для win810.



0



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

02.08.2020, 16:55

7

Понравилась статья? Поделить с друзьями:

Не пропустите эти материалы по теме:

  • Яндекс еда ошибка привязки карты
  • Ошибка установки dishonored 2
  • Ошибка установки discord installation has failed
  • Ошибка установки directx произошла внутренняя системная ошибка
  • Ошибка установки directx windows 10

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии