Ubuntu下安装Dlib报错

阅读: 评论:0

Ubuntu下安装Dlib报错

Ubuntu下安装Dlib报错

错误如下的话检查是否安装了CMake;

sudo apt install cmake
The directory '/home/yoshino/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/yoshino/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting dlib==19.19.0Downloading .19. (3.2MB)100% |████████████████████████████████| 3.2MB 2.2MB/s 
Installing collected packages: dlibRunning setup.py install for dlib ... errorComplete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-doxj3i0b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code&#ad().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/ --single-version-externally-managed --compile:running installrunning buildrunning build_pypackage init file 'dlib/__init__.py' not found (or not a regular file)running build_extTraceback (most recent call last):File "/tmp/pip-build-doxj3i0b/dlib/setup.py", line 120, in get_cmake_versionout = subprocess.check_output(['cmake', '--version'])File "/usr/lib/python3.6/subprocess.py", line 356, in check_output**kwargs).stdoutFile "/usr/lib/python3.6/subprocess.py", line 423, in runwith Popen(*popenargs, **kwargs) as process:File "/usr/lib/python3.6/subprocess.py", line 729, in __init__restore_signals, start_new_session)File "/usr/lib/python3.6/subprocess.py", line 1364, in _execute_childraise child_exception_type(errno_num, err_msg, err_filename)FileNotFoundError: [Errno 2] No such file or directory: 'cmake': 'cmake'During handling of the above exception, another exception occurred:Traceback (most recent call last):File "<string>", line 1, in <module>File "/tmp/pip-build-doxj3i0b/dlib/setup.py", line 261, in <module>'Topic :: Software Development',File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup(**attrs)File "/usr/lib/python3.6/distutils/core.py", line 148, in setupdist.run_commands()File "/usr/lib/python3.6/distutils/dist.py", line 955, in run_commandsself.run_command(cmd)File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 61, in runreturn orig.install.run(self)File "/usr/lib/python3.6/distutils/command/install.py", line 589, in runself.run_command('build')File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()File "/usr/lib/python3.6/distutils/command/build.py", line 135, in runself.run_command(cmd_name)File "/usr/lib/python3.6/distutils/cmd.py", line 313, in run_commandself.distribution.run_command(command)File "/usr/lib/python3.6/distutils/dist.py", line 974, in run_commandcmd_obj.run()File "/tmp/pip-build-doxj3i0b/dlib/setup.py", line 129, in runcmake_version = _cmake_version()File "/tmp/pip-build-doxj3i0b/dlib/setup.py", line 125, in get_cmake_version"n*******************************************************************n")RuntimeError:*******************************************************************CMake must be installed to build the following extensions: dlib*******************************************************************----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-doxj3i0b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code&#ad().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/ --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-doxj3i0b/dlib/

本文发布于:2024-02-05 02:50:58,感谢您对本站的认可!

本文链接:https://www.4u4v.net/it/170722292062336.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:报错   Ubuntu   Dlib
留言与评论(共有 0 条评论)
   
验证码:

Copyright ©2019-2022 Comsenz Inc.Powered by ©

网站地图1 网站地图2 网站地图3 网站地图4 网站地图5 网站地图6 网站地图7 网站地图8 网站地图9 网站地图10 网站地图11 网站地图12 网站地图13 网站地图14 网站地图15 网站地图16 网站地图17 网站地图18 网站地图19 网站地图20 网站地图21 网站地图22/a> 网站地图23