Hey there,
I'm really struggling to install face-recognition on my pi.
I've followed all of the steps successfully, however when running I get the following error:
Any ideas as to what's going on would be amazing.
Thanks!
I'm really struggling to install face-recognition on my pi.
I've followed all of the steps successfully, however when running
Code:
sudo pip install face-recognition --no-cache-dir
Code:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-4vDnVF/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-record-HsJswp/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-4vDnVF/dlib/
Code:
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find PythonInterp: Found unsuitable version "2.7.16", but required is at least "3.6" (found /usr/bin/python) Call Stack (most recent call first): /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:391 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-3.16/Modules/FindPythonInterp.cmake:169 (FIND_PACKAGE_HANDLE_STANDARD_ARGS) /tmp/pip-install-4vDnVF/dlib/dlib/external/pybind11/tools/FindPythonLibsNew.cmake:98 (find_package) /tmp/pip-install-4vDnVF/dlib/dlib/external/pybind11/tools/pybind11Tools.cmake:50 (find_package) /tmp/pip-install-4vDnVF/dlib/dlib/external/pybind11/tools/pybind11Common.cmake:180 (include) /tmp/pip-install-4vDnVF/dlib/dlib/external/pybind11/CMakeLists.txt:200 (include) -- Configuring incomplete, errors occurred! See also "/tmp/pip-install-4vDnVF/dlib/build/temp.linux-armv7l-2.7/CMakeFiles/CMakeOutput.log". Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-install-4vDnVF/dlib/setup.py", line 252, in <module> 'Topic :: Software Development', File "/tmp/pip-build-env-dQebsM/lib/python2.7/site-packages/setuptools/__init__.py", line 162, in setup return distutils.core.setup(**attrs) File "/usr/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/tmp/pip-build-env-dQebsM/lib/python2.7/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run self.run_command('build') File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run self.run_command(cmd_name) File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command self.distribution.run_command(command) File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/tmp/pip-install-4vDnVF/dlib/setup.py", line 130, in run self.build_extension(ext) File "/tmp/pip-install-4vDnVF/dlib/setup.py", line 167, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "/usr/lib/python2.7/subprocess.py", line 190, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-4vDnVF/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-4vDnVF/dlib/build/lib.linux-armv7l-2.7', '-DPYTHON_EXECUTABLE=/usr/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1
Thanks!
Statistics: Posted by rory1234 — Sun Jul 21, 2024 5:03 am — Replies 2 — Views 77