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
英文地址,請注明出處:http://en.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…