mpiigaze的安装过程一

mpiigaze链接

mpiigaze应该不是作者本人写的,而是社区工作者的杰作,对原论文Appearance-Based Gaze Estimation in the Wild的代码进行的一些复现

1.创建conda环境

2.问题

Building wheels for collected packages: dlibBuilding wheel for dlib (pyproject.toml) ... errorerror: subprocess-exited-with-error× Building wheel for dlib (pyproject.toml) did not run successfully.│ exit code: 1╰─> [41 lines of output]running bdist_wheelrunning buildrunning build_ext================================================================================================================================================================================================================================================CMake is not installed on your system!Or it is possible some broken copy of cmake is installed on your system.It is unfortunately very common for python package managers to includebroken copies of cmake.  So if the error above this refers to some filepath to a cmake file inside a python or anaconda or miniconda path then youshould delete that broken copy of cmake from your computer.Instead, please get an official copy of cmake from one of these known goodsources of an official cmake:- cmake.org (this is how windows users should get cmake)- apt install cmake (for Ubuntu or Debian based systems)- yum install cmake (for Redhat or CenOS based systems)On a linux machine you can run `which cmake` to see what cmake you areactually using.  If it tells you it's some cmake from any kind of pythonpackager delete it and install an official cmake.More generally, cmake is not installed if when you open a terminal windowand typecmake --versionyou get an error.  So you can use that as a very basic test to see if youhave cmake installed.  That is, if cmake --version doesn't run from thesame terminal window from which you are reading this error message, thenyou have not installed cmake.  Windows users should take note that theyneed to tell the cmake installer to add cmake to their PATH.  Since youcan't run commands that are not in your PATH.  This is how the PATH workson Linux as well, but failing to add cmake to the PATH is a particularlycommon problem on windows and rarely a problem on Linux.================================================================================================================================================================================================================================================[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: ERROR: Failed to build installable wheels for some pyproject.toml based projects (dlib)

问题是系统上没有安装 CMake,或者安装的 CMake 是损坏的/不正确的版本,导致 dlib 库无法成功构建。

dlib 是一个 C++ 库,它提供了很多机器学习算法,包括人脸检测和地标检测等功能。当你在 Python 中安装 dlib 时,它需要先编译 C++ 代码,而这个编译过程依赖于 CMake。

第一种安装是:sudo apt install cmake这个需要sudo权限

然而我没有sudo权限,

[sudo] password for zhouy24: 
zhouy24 is not in the sudoers file.  This incident will be reported.

所以使用不需要sudo的方式:
由于我使用conda创建环境了,所以 使用命令:conda install -c anaconda cmake 指定从 anaconda 频道安装,这通常更稳定。

(mpiigaze) zhouy24@RL-DSlab:~/zhouy24Files/mpiigaze/pytorch_mpiigaze$ conda install -c anaconda cmake
Channels:- anaconda- conda-forge- defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done## Package Plan ##environment location: /home/zhouy24/miniconda3/envs/mpiigazeadded / updated specs:- cmakeThe following packages will be downloaded:package                    |            build---------------------------|-----------------c-ares-1.19.1              |       h5eee18b_0         114 KB  anacondacmake-3.31.2               |       h27e300b_0        21.9 MB  anacondaexpat-2.7.1                |       h6a678d5_0         198 KB  anacondakrb5-1.21.3                |       h8a1dbc1_1         1.4 MB  anacondalibcurl-8.14.1             |       h31d0fb7_0         473 KB  anacondalibedit-3.1.20230828       |       h5eee18b_0         191 KB  anacondalibev-4.33                 |       h7f8727e_1         106 KB  anacondalibnghttp2-1.57.0          |       h2d74bed_0         705 KB  anacondalibsqlite-3.46.0           |       hde9e2c9_0         845 KB  conda-forgelibssh2-1.11.1             |       h251f7ec_0         294 KB  anacondalibuv-1.48.0               |       h5eee18b_0         1.1 MB  anacondalibxcb-1.17.0              |       h9b100fa_0         407 KB  anacondalibzlib-1.2.13             |       h4ab18f5_6          60 KB  conda-forgelz4-c-1.9.4                |       h6a678d5_1         161 KB  anacondapthread-stubs-0.3          |       h0ce48e5_1           5 KB  anacondapython-3.8.20              |       he870216_0        24.3 MB  anacondarhash-1.4.3                |       hdbd6064_0         256 KB  anacondasqlite-3.50.2              |       hb25bd0a_1         1.6 MB  anacondatk-8.6.14                  |       h993c535_1         3.4 MB  anacondaxorg-libx11-1.8.12         |       h9b100fa_1         922 KB  anacondaxorg-libxau-1.0.12         |       h9b100fa_0          14 KB  anacondaxorg-libxdmcp-1.1.5        |       h9b100fa_0          20 KB  anacondaxorg-xorgproto-2024.1      |       h5eee18b_1         560 KB  anacondazlib-1.2.13                |       h4ab18f5_6          91 KB  conda-forgezstd-1.5.6                 |       hc292b87_0         1.0 MB  anaconda------------------------------------------------------------Total:        59.9 MBThe following NEW packages will be INSTALLED:c-ares             anaconda/linux-64::c-ares-1.19.1-h5eee18b_0 cmake              anaconda/linux-64::cmake-3.31.2-h27e300b_0 expat              anaconda/linux-64::expat-2.7.1-h6a678d5_0 krb5               anaconda/linux-64::krb5-1.21.3-h8a1dbc1_1 libcurl            anaconda/linux-64::libcurl-8.14.1-h31d0fb7_0 libedit            anaconda/linux-64::libedit-3.1.20230828-h5eee18b_0 libev              anaconda/linux-64::libev-4.33-h7f8727e_1 libnghttp2         anaconda/linux-64::libnghttp2-1.57.0-h2d74bed_0 libssh2            anaconda/linux-64::libssh2-1.11.1-h251f7ec_0 libuv              anaconda/linux-64::libuv-1.48.0-h5eee18b_0 libxcb             anaconda/linux-64::libxcb-1.17.0-h9b100fa_0 lz4-c              anaconda/linux-64::lz4-c-1.9.4-h6a678d5_1 pthread-stubs      anaconda/linux-64::pthread-stubs-0.3-h0ce48e5_1 rhash              anaconda/linux-64::rhash-1.4.3-hdbd6064_0 sqlite             anaconda/linux-64::sqlite-3.50.2-hb25bd0a_1 xorg-libx11        anaconda/linux-64::xorg-libx11-1.8.12-h9b100fa_1 xorg-libxau        anaconda/linux-64::xorg-libxau-1.0.12-h9b100fa_0 xorg-libxdmcp      anaconda/linux-64::xorg-libxdmcp-1.1.5-h9b100fa_0 xorg-xorgproto     anaconda/linux-64::xorg-xorgproto-2024.1-h5eee18b_1 zlib               conda-forge/linux-64::zlib-1.2.13-h4ab18f5_6 zstd               anaconda/linux-64::zstd-1.5.6-hc292b87_0 The following packages will be UPDATED:tk                 conda-forge::tk-8.6.13-noxft_hd72426e~ --> anaconda::tk-8.6.14-h993c535_1 The following packages will be SUPERSEDED by a higher-priority channel:python             conda-forge::python-3.8.20-h4a871b0_2~ --> anaconda::python-3.8.20-he870216_0 The following packages will be DOWNGRADED:libsqlite                               3.50.3-hee844dc_0 --> 3.46.0-hde9e2c9_0 libzlib                                  1.3.1-hb9d3cd8_2 --> 1.2.13-h4ab18f5_6 Proceed ([y]/n)? yDownloading and Extracting Packages:Preparing transaction: done                                                                                                                                                    
Verifying transaction: done                                                                                                                                                    
Executing transaction: done                   

验证安装:

cmake --version

如果在 Conda 环境中成功安装,当你激活该环境时,cmake --version 应该可以正常运行。停用环境后,cmake 命令可能就找不到了。

(mpiigaze) zhouy24@RL-DSlab:~/zhouy24Files/mpiigaze/pytorch_mpiigaze$ cmake --version
cmake version 3.31.2    

之后使用pip下载命令:
(mpiigaze) zhouy24@RL-DSlab:~/zhouy24Files/mpiigaze/pytorch_mpiigaze$ pip install -r requirements.txt
除去一堆下载之外,最重要的是:

Building wheels for collected packages: dlibBuilding wheel for dlib (pyproject.toml) ... doneCreated wheel for dlib: filename=dlib-20.0.0-cp38-cp38-linux_x86_64.whl size=3973919 sha256=3a6b5f5508cafa89392278cba89fa01cd5e953506f7e96208b19651e9e405f53Stored in directory: /home/zhouy24/.cache/pip/wheels/29/a3/42/e1f8773f2019449881db7ae7488211a3b3e97a72e21b944970
Successfully built dlib
Installing collected packages: pytz, mpmath, dlib, tzdata, typing-extensions, tqdm, termcolor, tabulate, sympy, six, pyyaml, protobuf, portalocker, Pillow, packaging, nvidia-nvtx-cu12, nvidia-nvjitlink-cu12, nvidia-nccl-cu12, nvidia-curand-cu12, nvidia-cufft-cu12, nvidia-cuda-runtime-cu12, nvidia-cuda-nvrtc-cu12, nvidia-cuda-cupti-cu12, nvidia-cublas-cu12, numpy, networkx, MarkupSafe, fsspec, filelock, yacs, triton, tensorboardX, scipy, python-dateutil, opencv-python, nvidia-cusparse-cu12, nvidia-cudnn-cu12, jinja2, iopath, h5py, pandas, nvidia-cusolver-cu12, fvcore, torch, torchvision
Successfully installed MarkupSafe-2.1.5 Pillow-10.4.0 dlib-20.0.0 filelock-3.16.1 fsspec-2025.3.0 fvcore-0.1.5.post20221221 h5py-3.11.0 iopath-0.1.10 jinja2-3.1.6 mpmath-1.3.0 networkx-3.1 numpy-1.24.4 nvidia-cublas-cu12-12.1.3.1 nvidia-cuda-cupti-cu12-12.1.105 nvidia-cuda-nvrtc-cu12-12.1.105 nvidia-cuda-runtime-cu12-12.1.105 nvidia-cudnn-cu12-9.1.0.70 nvidia-cufft-cu12-11.0.2.54 nvidia-curand-cu12-10.3.2.106 nvidia-cusolver-cu12-11.4.5.107 nvidia-cusparse-cu12-12.1.0.106 nvidia-nccl-cu12-2.20.5 nvidia-nvjitlink-cu12-12.9.86 nvidia-nvtx-cu12-12.1.105 opencv-python-4.12.0.88 packaging-25.0 pandas-2.0.3 portalocker-3.0.0 protobuf-5.29.5 python-dateutil-2.9.0.post0 pytz-2025.2 pyyaml-6.0.2 scipy-1.10.1 six-1.17.0 sympy-1.13.3 tabulate-0.9.0 tensorboardX-2.6.2.2 termcolor-2.4.0 torch-2.4.1 torchvision-0.19.1 tqdm-4.67.1 triton-3.0.0 typing-extensions-4.13.2 tzdata-2025.2 yacs-0.1.8

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
如若转载,请注明出处:http://www.pswp.cn/news/915029.shtml
繁体地址,请注明出处:http://hk.pswp.cn/news/915029.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

如何将华为文件传输到电脑

在数字管理领域,将华为设备上的文件传输到电脑是高频需求。无论为了备份、缓解手机存储压力,还是跨平台访问,把华为手机连接电脑已成为许多用户的刚需。下面介绍 5 种高效方法,可满足不同场景与偏好,助你轻松完成文件迁…

LP-MSPM0G3507学习--05中断及管脚中断

关键函数: NVIC_EnableIRQ(IRQn_Type IRQn):使能中断 例5-1:单按键中断方式实现led灯的亮灭 在上一讲LP-MSPM0G3507学习--04GPIO控制中实现了通过按键控制led灯的亮灭,可以看出程序效率不高,下面采用中断的方式实现…

mac系统安装、启动Jenkins,创建pytest接口自动化任务

先安装Homebrew:mac系统安装brew-CSDN博客 1、安装Jenkins # 可以安装长期支持版本 brew install jenkins-lts# 或者最新版本(我安了这个) brew install jenkins 可查看Jenkins安装位置: # 最新版本 brew --prefix jenkins 2、…

设置第三方窗口置顶(SetWindowPos方法,vb.net)

起源在日常办公、游戏时,我们经常需要一些窗口处于置顶状态,而这些窗口往往是网页端(浏览器)、办公软件(wps、office等),这些需要置顶的窗口往往自身没有明显的置顶开关,因此&#x…

Docker-下载和安装

一、Linux版 1.安装docker (1)更新软件包索引 sudo apt update (2)安装必要的依赖 sudo apt install apt-transport-https ca-certificates curl software-properties-common (3)添加 Docker 官方 GP…

电脑DLL错误修复dll微软运行库工具修复dll缺失找不到dll等问题,dll免费修复工具

解决DLL文件缺失问题:我的使用体验与建议 在使用电脑的过程中,我们常常会遇到软件或系统报错,例如“无法找到指定模块”或“缺少某.dll文件”等提示。DLL(动态链接库)是Windows系统中不可或缺的组件,为应用…

HTTPS的工作原理及DNS的工作过程

HTTPSHTTP协议安全上存在以下三个风险:完整性 可用性 保密性窃听风险,比如通信链路上可以获取通信内容,用户号容易没。篡改风险,比如强制植入垃圾广告,视觉污染,用户眼容易瞎。冒充风险,比如冒充…

VisualXML全新升级 | 新增BusLoad计算

VisualXML是一个功能强大的网络总线设计工具,专注于简化汽车电子系统中复杂的网络数据设计操作。该软件支持多种主流总线网络格式的数据编辑(如DBC、LDF、ARXML、HEX等),并能够基于Excel表格的方式生成和转换多种数据库文件。由此…

李天意考研数学精讲课学习笔记(课堂版)

视频链接:【考研数学精讲课李天意】基础强化真题,概念精讲与解题技巧(适用数学一/二/三)_哔哩哔哩_bilibili 讲义:夸克网盘分享 高数6 不定积分

闲庭信步使用图像验证平台加速FPGA的开发:第二十三课——图像直方图和灰度图像叠加的FPGA实现

(本系列只需要modelsim即可完成数字图像的处理,每个工程都搭建了全自动化的仿真环境,只需要双击top_tb.bat文件就可以完成整个的仿真,大大降低了初学者的门槛!!!!如需要该系列的工程…

C++并发编程-14. 利用栅栏实现同步

前文我们通过原子操作实战实现了无锁队列,今天完善一下无锁的原子操作剩余的知识,包括Relaese和Acquire内存序在什么情况下是存在危险的,以及我们可以利用栅栏机制实现同步等等。 线程可见顺序 我们提到过除了memory_order_seq_cst顺序&#…

如何选择旅游科技行业云ERP?Oracle NetSuite助力汇智国际数智化升级

2025年4月21日,汇智国际旅游发展有限公司(以下简称汇智国际)携手 Oracle NetSuite与Hitpoint Cloud ,共同参与了汇智国际 Oracle NetSuite 云ERP 项目启动会。 本次会议标志着汇智国际在数字化转型道路上迈出了坚实而关键的一步&…

深度学习零基础入门(3)-图像与神经网络

好久不见~我又回来了 这一节我们来讲一讲图像在计算机中的本质,以及全连接神经网络的缺陷,进而引出卷积神经网络一、图像在计算机中的本质 不知道你有没有学过数据结构,在讲这一部分的时候对数组进行了扩展,讲到了广义表和压缩矩阵…

http性能测试命令ab

在 Linux系统中, ab( ApacheBench)是一个用于 测试HTTP服务器性能的 工具。它是 Apache HTTP服务器项目的 一部分,专门设计用来模拟 多个用户对 服务器发起 并发请求,从而 评估服务器的 负载能力和 响应时间其中&#…

从0开始学习R语言--Day50--ROC曲线

对于已经拟合好的生存模型,我们一般会直接用ROC去评判一下整体的水平,因为很多时候阈值都是我们人为根据实际情况去设定的,这种微调的细节都是在整体模型的拟合程度确定下来后再做的工作。ROC曲线可以提供给我们模型对于二分类变量的区分能力…

从Hyperliquid到AILiquid:一场从极致性能到策略智能的迭代

在Hyperliquid以极致性能引爆链上衍生品交易热潮之后,DeFi市场正迎来新一轮的范式转变。作为AI原生的下一代交易平台,AILiquid正式上线并引发市场广泛关注。该平台不仅保留了高频低延迟的交易体验,更通过AI撮合引擎与链上风险控制系统&#x…

磁悬浮轴承转子不平衡质量控制:陷波滤波器深度解析

在磁悬浮轴承高速旋转的世界里,不平衡质量如同一个无形的幽灵,引发危险的同步振动,而陷波滤波器,正是精准捕获并消除这个幽灵的“电磁猎手”。本文将深入剖析其核心原理与实战设计。引言:同步振动的致命诱惑磁悬浮轴承…

Oracle 数据库常见等待事件参数详解

在 Oracle 数据库的性能诊断与优化中,等待事件是重要的分析依据,而理解等待事件的参数则是深入排查问题的基础。本文将结合 Oracle 官方文档,对数据库中常见的等待事件参数进行详细解析,帮助数据库管理员和开发人员更好地解读等待…

STM32中的CAN总线详解:从原理到实战

前言:为什么CAN总线是嵌入式通信的"硬通货"? 在嵌入式通信领域,CAN(Controller Area Network)总线凭借其高可靠性、实时性和多节点通信能力,成为汽车电子、工业控制、智能设备等领域的"标配…

【鸿蒙HarmonyOS】鸿蒙app开发入门到实战教程(二):封装自定义可复用组件

组件的可复用性,对我们开发的app质量影响很大,看看鸿蒙中如何封装这种组件 实现效果代码实现 局部封装 Builder titleBuilder(title:string 默认标题) {// Builder装饰此函数,使其能以链式调用的方式配置并构建Text组件Row(){Text(title).fo…