Home python a program that highlights pivot points on a person's face. dlib error

a program that highlights pivot points on a person’s face. dlib error

Author

Date

Category

Gifts. Tell me, you need to find pivot points on a person’s face so that you can make calculations with them in the future. Let’s say, as in the photo (see photo). found it was possible to use dlib, but no luck! I can’t install it in any way, I’ve already looked at all the guides. writing code in visual studio, installed cmake

pip install cmake

and also installed through separate components “CMake C++ tool for Windows”. after that

pip install dlib

but this error appears. I also tried it in pycharm and just through the console everything is the same everywhere.
It is not necessary to help with dlib, the main thing for me is to find the points on my face. Thank you!

python 3.7
win 10

Error:

Installing collected packages: dlib
Running setup.py install for dlib: started
Running setup.py install for dlib: finished with status 'error'
ERROR: Command errored out with exit status 1:
 command: 'C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv [0] = '"'" 'C: \\ Users \\ Derp \\ AppData \\ Local \\ Temp \\ pip-install-8nxioyi2 \\ dlib \\ setup.py' "'"'; __file __ = '"'" 'C: \\ Users \\ Derp \\ AppData \\ Local \\ Temp \\ pip-install-8nxioyi2 \\ 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 \ Derp \ AppData \ Local \ Temp \ pip-record-us7gzfgo \ install-record.txt '--single-version-externally-managed --compile
   cwd: C: \ Users \ Derp \ AppData \ Local \ Temp \ pip-install-8nxioyi2 \ dlib \
Complete output (74 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 (tags / v3.7.4: e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
Invoking CMake setup: 'cmake C: \ Users \ Derp \ AppData \ Local \ Temp \ pip-install-8nxioyi2 \ dlib \ tools \ python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY = C: \ Users \ Derp \ AppData \ Local \ Temp \ pip-install- 8nxioyi2 \ dlib \ build \ lib.win-amd64-3.7 -DPYTHON_EXECUTABLE = C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE = C: \ Users \ Derp \ AppData \ Local Temp \ pip-install-8nxioyi2 \ dlib \ build \ lib.win-amd64-3.7 -A x64 '
- Building for: Visual Studio 16 2019
- Selecting Windows SDK version 10.0.17763.0 to target Windows 10.0.18362.
CMake Error at CMakeLists.txt: 3 (project):
 Failed to run MSBuild command:
  C: / Program Files (x86) / Microsoft Visual Studio / 2019 / Community / MSBuild / Current / Bin / MSBuild.exe
 to get the value of VCTargetsPath:
  Microsoft (R) Build Engine ╨▓╨╡╤A╤B╨╕╨╕ 16.3.2 + e481bbf88 ╨┤╨╗╤NS.NET Framework
  (C) ╨B╨╛╤A╨┐╨╛╤A╨░╤Ž╨╕╤NS╨B╨░╨╣╨║╤A╨╛╤B╨╛╤D╤V(Microsoft Corporation). ╨T╤B╨╡ ╨┐╤A╨░╨▓╨░ ╨╖╨░╤AND╨╕╤AND╨╡╨╜╤L.
  ╨B╨▒╨╛╤A╨║╨░ ╨╜╨░╤WITH╨░╤V╨░ 11/29/2019 0:03:49.
  ╨I AM╤A╨╛╨╡╨║╤V"C: \ Users \ Derp \ AppData \ Local \ Temp \ pip-install-8nxioyi2 \ dlib \ build \ temp.win-amd64-3.7 \ Release \ CMakeFiles \ 3.15. 3 \ VCTargetsPath.vcxproj "╨▓ ╤G╨╖╨╗╨╡ 1 (╤Ž╨╡╨╗╨╡╨▓╤L╨╡ ╨╛╨▒╤TO╨╡╨║╤V╤L ╨┐╨╛ ╤G╨╝╨╛╨╗╤Z╨░╨╜╨╕╤O).
  C: \ Users \ Derp \ AppData \ Local \ Temp \ pip-install-8nxioyi2 \ dlib \ build \ temp.win-amd64-3.7 \ Release \ CMakeFiles \ 3.15.3 \ VCTargetsPath.vcxproj (15,2): error MSB4019 : ╨╕╨╝╨┐╨╛╤A╤V╨╕╤A╨╛╨▓╨░╨╜╨╜╤L╨╣ ╨┐╤A╨╛╨╡╨║╤V"C: \ Users \ Derp \ AppData \ Local \ Temp \ pip-install-8nxioyi2 \ dlib \ build \ temp.win-amd64-3.7 \ Release \ CMakeFiles \ 3.15.3 \ \ Program Files (x86) \ Microsoft Visual Studio \ 2019 \ Community \ Common7 \ IDE \ VC \ VCTargets \ Microsoft.Cpp.Default.props "╨╜╨╡ ╨╛╨▒╨╜╨░╤A╤G╨╢╨╡╨╜. ╨I AM╤A╨╛╨▓╨╡╤A╤M╤V╨╡ ╨┐╤G╤V╤M ╨▓ ╨╛╨▒╤TO╤NS╨▓╨╗╨╡╨╜╨╕╨╕ & lt; Import & gt; ╨╕ ╨╜╨░╨╗╨╕╤WITH╨╕╨╡ ╤D╨░╨╣╨╗╨░ ╨╜╨░ ╨┤╨╕╤B╨║╨╡.
  ╨b╨▒╨╛╤A╨║╨░ ╨┐╤A╨╛╨╡╨║╤V╨░ "C: \ Users \ Derp \ AppData \ Local \ Temp \ pip-install-8nxioyi2 \ dlib \ build \ temp.win-amd64-3.7 \ Release \ CMakeFiles \ 3.15.3 \ VCTargetsPath.vcxproj "╨╖╨░╨▓╨╡╤A╤AND╨╡╨╜╨░ (╤Ž╨╡╨╗╨╡╨▓╤ L╨╡ ╨╛╨▒╤K╨╡╨║╤V╤L ╨┐╨╛ ╤G╨╝╨╛╨╗╤Z╨░╨╜╨╕╤O) ╤B ╨╛╤I╨╕╨▒ ╨║╨╛╨╣.
  ╨YU╤I╨╕╨▒╨║╨░ ╤B╨▒╨╛╤A╨║╨╕. 
"C: \ Users \ Derp \ AppData \ Local \ temp \ pip-install-8nxioyi2 \ dlib \ build \ temp.win-amd64-3.7 \ release \ cmakefiles \ 3.15.3 \ vctargetspath.vcxproj" (╤Ž╨╡╨ ╗╨╡╨▓╨╛╨╣ ╨╛╨▒╤TO╨╡╨║╤V╨┐╨╛ ╤G╨╝╨╛╨╗╤WITH╨░╨╜╨╕╤O) (1) - & gt;
   C: \ Users \ Derp \ AppData \ Local \ temp \ pip-install-8nxioyi2 \ dlib \ build \ temp.win-amd64-3.7 \ release \ cmakefiles \ 3.15.3 \ vctargetspath.vcxproj (15,2): Error MSB4019 : ╨╕╨╝╨┐╨╛╤A╤A╨╛╨▓╨░╨╜╨╜╤L╨╣ ╨┐╤A╨╛╨╡╨║╤V"C: \ Users \ Derp \ AppData \ Local \ temp \ pip-install-8nxioyi2 \ dlib \ build \ temp.win-amd64-3.7 \ release \ cmakefiles \ 3.15.3 \ \ \ \ PROGRAM FILES (X86) \ Microsoft Visual Studio \ 2019 \ Community \ COMMON7 \ IDE \ vc \ vctargets \ microsoft.cpp.default.props "╨╜╨╡ ╨╛╨▒╨╜╨░╤╨╛╨▒╨╜╨░╤g╨╢╨╡╨╜. ╨╨╤╨╛╨▓╨╡╤m╤v╨╡ ╨┐╤H╤V╤M ╨▓ ╨╛╨▒╤K╤P╨▓╨╗╨╡╨╜╨╕╨╕ & LT; Import & gt; ╨╕ ╨╜╨░╨╗╨╕╤WITH╨╕╨╡ ╤D╨░╨╣╨╗╨░ ╨╜╨░ ╨┤╨╕╤B╨║╨╡.
    ╨y╤╤g╨┐╤a╨╡╨╢╨┤╨╡╨╜╨╕╨╣: 0.
    ╨Yu╤: 1.
  ╨╨╤╨╛╤╨╛╤ ╨▓╤A╨╡╨╝╨╡╨╜╨╕ 00: 00: 00.05
 Exit Code: 1
- Configuring Incomplete, Errors Occurred!
See Also "c: /users/derp/appdata/local/temp/pip-install-8nxioyi2/dlib/build/temp.win-amd64-3.7/release/cmakefiles/cmakeoutput.log".
Traceback (MOST Recent Call Last):
 File "& lt; string & gt;", line 1, in & lt; module & gt;
 File "C: \ Users \ Derp \ AppData \ Local \ temp \ pip-install-8nxioyi2 \ dlib \ setup.py", Line 261, in & lt; module & gt;
  'Topic :: Software Development',
 File "C: \ Program Files (X86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ Lib \ Site-Packages \ SetupTools \ __ init__.py", Line 145, in Setup
  Return Distutils.core.Setup (** ATTRS)
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ lib \ distils \ core.py", Line 148, in Setup
  Dist.Run_Commands ()
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ lib \ distils \ dist.py", Line 966, in Run_Commands
  Self.Run_Command (CMD)
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ Lib \ Distils \ Dist.py", Line 985, in Run_Command
  cmd_obj.run ()
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ Lib \ Site-Packages \ SetupTools \ Command \ Install.py", Line 61, in Run
  Return orig.install.run (SELF)
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ Lib \ Distils \ Command \ Install.py", Line 545, in Run
  Self.Run_Command ('Build')
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ lib \ distils \ cmd.py", Line 313, in Run_Command
  self.distribution.Run_Command (Command)
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ Lib \ Distils \ Dist.py", Line 985, in Run_Command
  cmd_obj.run ()
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ Lib \ Distils \ Command \ Build.py", Line 135, in Run
  Self.Run_Command (CMD_NAME)
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ lib \ distils \ cmd.py", Line 313, in Run_Command
  self.distribution.Run_Command (Command)
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ Lib \ Distils \ Dist.py", Line 985, in Run_Command
  cmd_obj.run ()
 File "C: \ Users \ Derp \ AppData \ Local \ temp \ pip-install-8nxioyi2 \ dlib \ setup.py", Line 135, in Run
  Self.Build_Extension (EXT)
 File "C: \ Users \ Derp \ AppData \ Local \ temp \ pip-install-8nxioyi2 \ dlib \ setup.py", Line 172, in build_extension
  subprocess.check_call (CMake_Setup, CWD = BUILD_FOLDER)
 File "C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ lib \ subprocess.py", Line 347, in check_call
  RAISE CALLEDPROCESSERROR (Retcode, CMD)
subprocess.calledProcesseRor: Command '[' Cmake ',' C: \\ Users \\ Derp \\ AppData \\ Local \\ Temp \\ PIP-Install-8Nxioyi2 \\ Dlib \\ Tools \\ Python ',' -DCMAKE_Library_output_Directory = C: \\ Users \\ Derp \\ AppData \\ Local \\ Temp \\ PIP-Install-8Nxioyi2 \\ Dlib \\ Build \\ Lib.Win-AMD64-3.7 ',' -DPYTHON_EXECUTABLE = C: \\ Program Files (x86) \\ Microsoft Visual Studio \\ Shared \\ Python37_64 \\ Python.exe ',' -DCMake_Library_output_Directory_Release = C: \\ Users \\ Derp \\ AppData \\ Local \\ Temp \\ Pip-Install 8nxioyi2 \\ dlib \\ Build \\ lib.win-AMD64-3.7 ',' -a ',' x64 ']' Returned non-Zero Exit Status 1.
------------------------------------------ 
Error: Command Erroored Out With Exit Status 1: 'C: \ Program Files (x86) \ Microsoft Visual Studio \ Shared \ Python37_64 \ python.exe' -u -c 'import sys, setupTools, tokenize; sys.argv [0] = '"" "' C: \\ Users \\ Derp \\ APPDATA \\ Local \\ Temp \\ Pip-Install-8Nxioyi2 \\ Dlib \\ setup.py '"' "'; __File __ = '"'" 'C: \\ Users \\ Derp \\ APPDATA \\ Local \\ Temp \\ PIP-Install-8Nxioyi2 \\ Dlib \\ setup.py' "'"'; f = getattr (tokenize , '""' 'Open' '' '', Open) (__ File __); code = f.read (). Replace ('"' '' \ r \ n '' '' ','" '"\ \ n '"'" "); f.close (); EXEC (Code, __File__, '"' "'Exec'" '' '))' Install --record 'C: \ users \ Derp \ AppData \ Local \ Temp \ Pip-Record-US7GZFGO \ INSTALL-RECORD.TXT '--Single-Version-Externally-Managed --compile Check The Logs for Full Command Output.
----- Failed to install "DLIB == 19.18.0". -----


Answer 1

No possibility to respond in the comments. Perhaps this is what you need: problem in MSVC .

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions