pythonのライブラリdlibがインストールできない

実現したいこと

dlibをインストールしたい

前提

ターミナル上でpip install dlibを実行したところエラーが出ました。
cmakeというライブラリが必要であることが調べて分かったのですが、cmakeをインストールして実行してもエラーが出てしまいました。

発生している問題・エラーメッセージ

Collecting dlib Using cached dlib-19.24.4.tar.gz (3.3 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 ╰─> [10 lines of output] running bdist_wheel running build running build_ext Traceback (most recent call last): File "/opt/conda/bin/cmake", line 5, in <module> from cmake import cmake 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

試したこと

cmakeのアプリをインストールしましたが、上手くできず、その対処法が分からない状況です。

コメントを投稿

0 コメント