manjaro安装dlib遇到的问题

本文档详细记录了在Manjaro操作系统上安装dlib库的过程中遇到的问题及解决方法,包括安装base-devel和cmake的必要步骤,最终成功安装dlib后的小庆祝。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题重述

pip install dlib -i https://pypi.douban.com/simple/                                            ✔ 
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.douban.com/simple/
Collecting dlib
  Downloading https://pypi.doubanio.com/packages/f0/a2/ba6163c09fb427990180afd8d625bcecc5555af699c253193c35ffd48c4f/dlib-19.22.1.tar.gz (7.4 MB)
     |████████████████████████████████| 7.4 MB 1.8 MB/s            
Building wheels for collected packages: dlib
  Building wheel for dlib (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-k3ef8obp/dlib_94499833030b48d2a270b3d857115925/setup.py'"'"'; __file__='"'"'/tmp/pip-install-k3ef8obp/dlib_94499833030b48d2a270b3d857115925/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-5p3xeyoo
       cwd: /tmp/pip-install-k3ef8obp/dlib_94499833030b48d2a270b3d857115925/
  Complete output (43 lines):
  running bdist_wheel
  running build
  running build_py
  package init file 'tools/python/dlib/__init__.py' not found (or not a regular file)
  running build_ext
  Building extension for Python 3.10.1 (main, Dec 18 2021, 23:53:45) [GCC 11.1.0]
  Invoking CMake setup: 'cmake /tmp/pip-install-k3ef8obp/dlib_94499833030b48d2a270b3d857115925/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-k3ef8obp/dlib_94499833030b48d2a270b3d857115925/build/lib.linux-x86_64-3.10 -DPYTHON_EXECUTABLE=/usr/bin/python -DCMAKE_BUILD_TYPE=Release'
  CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
  CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
  CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
  -- Configuring incomplete, errors occurred!
  See also "/tmp/pip-install-k3ef8obp/dlib_94499833030b48d2a270b3d857115925/build/temp.linux-x86_64-3.10/CMakeFiles/CMakeOutput.log".
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-k3ef8obp/dlib_94499833030b48d2a270b3d857115925/setup.py", line 222, 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值