我试图在ubuntu上下载dlib
和face_recognition
模块,以便在anaconda
上使用它,但我一直收到以下错误:
Collecting dlib
Using cached dlib-19.22.0.tar.gz (7.4 MB)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/prannav/PREFIX=/home/prannav/anaconda3/envs/env_dlib/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-9cjdbrbl
cwd: /tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/
Complete output (8 lines):
running bdist_wheel
running build
running build_py
package init file 'tools/python/dlib/__init__.py' not found (or not a regular file)
running build_ext
ERROR: CMake must be installed to build dlib
----------------------------------------
ERROR: Failed building wheel for dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
ERROR: Command errored out with exit status 1:
command: /home/prannav/PREFIX=/home/prannav/anaconda3/envs/env_dlib/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-n6h69txl/install-record.txt --single-version-externally-managed --compile --install-headers /home/prannav/PREFIX=/home/prannav/anaconda3/envs/env_dlib/include/python3.8/dlib
cwd: /tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/
Complete output (8 lines):
running install
running build
running build_py
package init file 'tools/python/dlib/__init__.py' not found (or not a regular file)
running build_ext
ERROR: CMake must be installed to build dlib
----------------------------------------
ERROR: Command errored out with exit status 1: /home/prannav/PREFIX=/home/prannav/anaconda3/envs/env_dlib/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pisixg0d/dlib_a53199ae2aa54375ad5578ebe5f7f034/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-n6h69txl/install-record.txt --single-version-externally-managed --compile --install-headers /home/prannav/PREFIX=/home/prannav/anaconda3/envs/env_dlib/include/python3.8/dlib Check the logs for full command output.
请帮我解决这个问题
目前没有回答
相关问题 更多 >
编程相关推荐