admin管理员组文章数量:1516870
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.0.tar.gz (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=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-m4wx0yq1-record/install-record.txt --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 setupreturn distutils.core.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 = self.get_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=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-m4wx0yq1-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-doxj3i0b/dlib/本文标签: Ubuntu下安装Dlib报错
版权声明:本文标题:Ubuntu下安装Dlib报错 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.betaflare.com/biancheng/1731065926a1569251.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论