亚洲精品久久久中文字幕-亚洲精品久久片久久-亚洲精品久久青草-亚洲精品久久婷婷爱久久婷婷-亚洲精品久久午夜香蕉

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

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

瀏覽:119日期: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 編程
相關文章:
主站蜘蛛池模板: 亚洲视频在线观看免费视频 | 欧美成人看片黄a免费 | 国产欧美久久一区二区 | 国产三级a三级三级天天 | 亚洲经典在线观看 | 日本黄色一级毛片 | 在线观看h片 | 亚洲综合色就色手机在线观看 | 精品亚洲成a人在线播放 | 国产精品亚洲欧美大片在线看 | 日本一级特黄毛片免费视频9 | 国产精品视频在线播放 | 亚洲国产一区二区三区青草影视 | 色婷婷狠狠久久综合五月 | 成人 亚洲| 96色视频| 免费精品国产 | 国产一级二级三级在线观看 | 国产精品爱久久久久久久电影 | a级高清观看视频在线看 | 欧美3p在线观看 | 久久亚洲欧美日本精品品 | 丝袜美女被出水视频一区 | 久久久7777888精品 | 国产在线观看一区二区三区 | 免费观看欧美一区二区三区 | 小明www永久免费播放平台 | 国产日韩精品视频一区二区三区 | 麻豆精品视频入口 | 国产免费小视频 | 色 综合 欧美 亚洲 国产 | 欧美福利一区二区三区 | 美国一级特级毛片片aa视频 | 亚洲国产精品一区二区久久hs | 三a大片| 国产亚洲3p一区二区三区 | 欧美在线观看日韩欧美在线观看 | 国产成人啪精品视频免费网 | 一级毛片免费的 | 最新香蕉97超级碰碰碰碰碰久 | 亚洲一区二区在线 |