-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake error #244
Comments
You need to install Boost because it's required by dlib (which this library needs). But since you said you are using Ubuntu 14.04 though, there are special instructions for that here: #120 |
Reading package lists... Done The following packages have unmet dependencies: |
Description
Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
What I Did
pip install face_recognition
or
pip2 --no-cache-dir install face_recognition
Collecting face_recognition
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading face_recognition-1.0.0-py2.py3-none-any.whl
Collecting dlib>=19.5 (from face_recognition)
Downloading dlib-19.7.0.tar.gz (4.0MB)
100% |████████████████████████████████| 4.0MB 2.1MB/s
Collecting face-recognition-models>=0.2.0 (from face_recognition)
Downloading face_recognition_models-0.3.0.tar.gz (100.1MB)
100% |████████████████████████████████| 100.2MB 4.5MB/s
Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (from face_recognition)
Requirement already satisfied: Pillow in /usr/lib/python2.7/dist-packages (from face_recognition)
Collecting scipy>=0.17.0 (from face_recognition)
Downloading scipy-1.0.0-cp27-cp27mu-manylinux1_x86_64.whl (46.7MB)
100% |████████████████████████████████| 46.7MB 4.7MB/s
Requirement already satisfied: Click>=6.0 in /usr/local/lib/python2.7/dist-packages (from face_recognition)
Installing collected packages: dlib, face-recognition-models, scipy, face-recognition
Running setup.py install for dlib ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-7_YSqD/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-1YlQpH-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
Detected Python architecture: 64bit
Detected platform: linux2
Configuring cmake ...
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find Boost
-- Found PythonLibs: /home/ravi/anaconda2/lib/libpython2.7.so (found suitable version "2.7.6", minimum required is "2.6")
error: cmake configuration failed!
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-7_YSqD/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-1YlQpH-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7_YSqD/dlib/
/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg/pip/vendor/requests/packages/urllib3/util/ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
ravi@ravi-ThinkPad-L460:~$
The text was updated successfully, but these errors were encountered: