im getting this error while trying o install dlib on cmd i already install cmake version 3.26.1 visual studio n python version is 3.10
pip install dlib
and the results
Collecting dlib
Using cached dlib-19.24.1.tar.gz (3.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: dlib
Building wheel for dlib (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for dlib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
Traceback (most recent call last):
File "C:\Users\shiri\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\shiri\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\shiri\AppData\Local\Programs\Python\Python310\Scripts\cmake.exe\__main__.py", line 4, in <module>
ModuleNotFoundError: No module named 'cmake'
ERROR: CMake must be installed to build dlib
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for dlib
Failed to build dlib
ERROR: Could not build wheels for dlib, which is required to install pyproject.toml-based projects
i dont know what to do, please help:"
PATH
environment variable? – SoftballModuleNotFoundError: No module named 'cmake'
- Have you searched for that error message? E.g. that question suggests that you need to install Python module named "cmake". – Sillypip
)? – Silly