色综合图-色综合图片-色综合图片二区150p-色综合图区-玖玖国产精品视频-玖玖香蕉视频

您的位置:首頁(yè)技術(shù)文章
文章詳情頁(yè)

python安裝dlib庫(kù)報(bào)錯(cuò)問(wèn)題及解決方法

瀏覽:123日期:2022-10-20 10:49:21

問(wèn)題描述

我是debain 系的linux系統(tǒng)沒(méi)遇到這個(gè)問(wèn)題,在centos系統(tǒng)遇到的

Collecting dlib Downloading http://mirrors.cloud.aliyuncs.com/pypi/packages/63/92/05c3b98636661cb80d190a5a777dd94effcc14c0f6893222e5ca81e74fbc/dlib-19.19.0.tar.gz (3.2MB) 100% |????????????????????????????????| 3.2MB 99.4MB/s Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib ... error Complete output from command /usr/bin/python3 -u -c 'import setuptools, tokenize;__file__=’/tmp/pip-build-ld86u12i/dlib/setup.py’;f=getattr(tokenize, ’open’, open)(__file__);code=f.read().replace(’rn’, ’n’);f.close();exec(compile(code, __file__, ’exec’))' bdist_wheel -d /tmp/tmp0zu3_xkcpip-wheel- --python-tag cp36: running bdist_wheel running build running build_py package init file ’dlib/__init__.py’ not found (or not a regular file) running build_ext Building extension for Python 3.6.8 (default, Aug 7 2019, 17:28:10) Invoking CMake setup: ’cmake /tmp/pip-build-ld86u12i/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-build-ld86u12i/dlib/build/lib.linux-x86_64-3.6 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release’ -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done CMake Error: your CXX compiler: 'CMAKE_CXX_COMPILER-NOTFOUND' was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. CMake Error: your CXX compiler: 'CMAKE_CXX_COMPILER-NOTFOUND' was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name. -- Found PythonInterp: /usr/bin/python3 (found version '3.6.8') -- Found PythonLibs: python3.6m -- Performing Test HAS_CPP14_FLAG

主要報(bào)錯(cuò)就是

CMake Error: your CXX compiler: 'CMAKE_CXX_COMPILER-NOTFOUND' was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.

解決辦法

yum install cmake gcc-c++

另一個(gè)問(wèn)題另外一個(gè)地方可能會(huì)報(bào)錯(cuò)

fatal error: Python.h: No such file or directory #include <Python.h> compilation terminated.

這種報(bào)錯(cuò)很常見(jiàn)了

解決辦法:

debain系

sudo apt install python3-dev

rehat系

yum install python3-devel

總結(jié)

到此這篇關(guān)于python安裝dlib庫(kù)報(bào)錯(cuò)問(wèn)題及解決方法的文章就介紹到這了,更多相關(guān)python安裝dlib庫(kù)報(bào)錯(cuò)內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!

標(biāo)簽: Python 編程
相關(guān)文章:
主站蜘蛛池模板: 亚洲精品国产福利片 | 99re热这里只有精品视频 | 一级欧美一级日韩片 | 色综合久久久 | 理伦毛片| 91久久香蕉国产线看 | 国产综合成人久久大片91 | 免费观看一级特黄三大片视频 | 亚洲日本va午夜中文字幕一区 | 成人免费在线观看视频 | 国产欧美一级片 | avove在线播放 | 日本高清色www | 日韩欧免费一区二区三区 | 国产99视频精品免视看9 | 国产午夜精品理论片小yo奈 | 美女视频网站色 | 国产特黄特色一级特色大片 | 99在线免费观看 | 国产亚洲欧美日韩国产片 | 亚洲精品国产三级在线观看 | 亚洲国产一 | 国产97公开成人免费视频 | 久久综合精品不卡一区二区 | 一级欧美一级日韩 | 国产精品欧美一区二区在线看 | 在线观看国产精品一区 | 在线观看99 | 最新国产精品好看的国产精品 | 成人久久网 | 国产三级手机在线 | 黄影| 亚洲夜色 | 成年女人在线观看片免费视频 | 6080伦理久久亚洲精品 | 亚洲男人的天堂在线观看 | 综合久久久久久 | 男人女人真曰批视频播放 | 九九热视频在线播放 | 精品国产日韩亚洲一区二区 | gv手机在线观看 |