i have to mKE a facial attendance system for workers for now use laptops cmra and add…
- User
i have to mKE a facial attendance system for workers for now use laptops cmra and add images of people with names in dataset and whn they come in front of cmra of laptop coature them in exck or csv with time stamp
- Assistant
- User
super().run_command(command) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\site-packages\setuptools_distutils\dist.py", line 983, in run_command cmd_obj.run() File "C:\Users\Administrator\AppData\Local\Temp\pip-install-y8g7leir\dlib_8198058c6b7845929acde686946588a2\setup.py", line 168, in run self.build_extension(ext) File "C:\Users\Administrator\AppData\Local\Temp\pip-install-y8g7leir\dlib_8198058c6b7845929acde686946588a2\setup.py", line 206, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 413, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', 'C:\Users\Administrator\AppData\Local\Temp\pip-install-y8g7leir\dlib_8198058c6b7845929acde686946588a2\tools\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\Administrator\AppData\Local\Temp\pip-install-y8g7leir\dlib_8198058c6b7845929acde686946588a2\build\lib.win-amd64-cpython-312', '-DPYTHON_EXECUTABLE=C:\Users\Administrator\AppData\Local\Programs\Python\Python312\python.exe', '-DDLIB_USE_FFMPEG=OFF', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\Administrator\AppData\Local\Temp\pip-install-y8g7leir\dlib_8198058c6b7845929acde686946588a2\build\lib.win-amd64-cpython-312', '-A', 'x64']' returned non-zero exit status 1. [end of output]
- Assistant
The error message you're encountering indicates that there was a problem building the package from source. This can happen for several reasons, especially if you don't have the required build tools or dependencies installed. Here’s how you can address this issue:
- User
my python version is 3.12 which should i dwlnd
- Assistant
To install
dlibfor Python 3.12 on Windows, you will need to download a compatible precompiled binary wheel. As of my last knowledge update,dlibwheels are often available on Christoph Gohlke's Unofficial Windows Binaries site.Steps to Download and Install
dlibfor Python 3.12