国产成人精品久久免费动漫-国产成人精品天堂-国产成人精品区在线观看-国产成人精品日本-a级毛片无码免费真人-a级毛片毛片免费观看久潮喷

您的位置:首頁技術文章
文章詳情頁

python安裝dlib庫報錯問題及解決方法

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

問題描述

我是debain 系的linux系統沒遇到這個問題,在centos系統遇到的

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

主要報錯就是

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++

另一個問題另外一個地方可能會報錯

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

這種報錯很常見了

解決辦法:

debain系

sudo apt install python3-dev

rehat系

yum install python3-devel

總結

到此這篇關于python安裝dlib庫報錯問題及解決方法的文章就介紹到這了,更多相關python安裝dlib庫報錯內容請搜索好吧啦網以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持好吧啦網!

標簽: Python 編程
相關文章:
主站蜘蛛池模板: 欧美成人免费sss | freesex日本高清nice| 欧美一级黄视频 | 国产精品视频免费观看调教网 | 久久国产影院 | 日韩一区二区中文字幕 | 女初高中福利视频在线观看 | 在线观看国产精成人品 | 欧美日韩成人 | 日韩欧美高清在线观看 | 毛片在线看免费 | 久久国产精品久久国产精品 | 国产激情久久久久影 | 精品欧美一区二区在线看片 | 美国人成毛片在线播放 | 国产最新精品 | 青青热久久国产久精品秒播 | 日本aaaaa级毛片 | 国内自拍偷拍视频 | 一区在线观看 | 永久免费毛片在线播放 | 欧美一级高清片免费一级 | 加勒比毛片 | 亚洲 欧美 日韩中文字幕一区二区 | 久久精品视频免费播放 | 日韩美女专区中文字幕 | 国产91专区 | 波多野结衣在线中文 | 亚洲天堂在线视频播放 | 久久精品免费视频观看 | 国产α片 | 久久精品免费观看国产软件 | 男女午夜性爽快免费视频不卡 | 久久男人的天堂 | 亚洲综合色一区二区三区小说 | 国产激爽大片在线播放 | 欧美激情一级欧美精品 | 久久国产欧美另类久久久 | 久草精彩视频 | 国产三级国产精品国产国在线观看 | 免费观看三级毛片 |