ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-aulw3oxp/dlib_d99aa6ddf337447d8fc5215d38e3e6bb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-aulw3oxp/dlib_d99aa6ddf337447d8fc5215d38e3e6bb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-jmy4sc1z/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/wang/.local/include/python3.9/dlib cwd: /tmp/pip-install-aulw3oxp/dlib_d99aa6ddf337447d8fc5215d38e3e6bb/ Complete output (8 lines): running install running build running build_py package init file 'tools/python/dlib/__init__.py' not found (or not a regular file) running build_ext ERROR: CMake must be installed to build dlib ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-aulw3oxp/dlib_d99aa6ddf337447d8fc5215d38e3e6bb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-aulw3oxp/dlib_d99aa6ddf337447d8fc5215d38e3e6bb/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-jmy4sc1z/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/wang/.local/include/python3.9/dlib Check the logs for full command output.
时间: 2024-01-04 21:03:12 浏览: 187
state_jacket:简单直观的状态机
这是一个安装 dlib 库时出现的错误,提示需要安装 CMake。你可以尝试通过以下命令来安装 CMake:
```bash
sudo apt-get install cmake
```
如果你使用的是 macOS,则可以使用以下命令来安装 CMake:
```bash
brew install cmake
```
安装完成后,再次尝试安装 dlib 库。
阅读全文