When I run pip install dlib, I get this output:
Collecting dlib
Using cached https://files.pythonhosted.org/packages/df/aa/6a9bb2a763107bb2606d6ee1aa65fcd3b51375a9ef6436e9c9280b0dd63c/dlib-19.15.0.tar.gz
Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... error
Complete output from command /Users/ardamavi/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-wheel-lqe3g7xx --python-tag cp36:
running bdist_wheel
running build
running build_py
package init file 'dlib/__init__.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 13:19:00)
Invoking CMake setup: 'cmake /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/build/lib.macosx-10.7-x86_64-3.6 -DPYTHON_EXECUTABLE=/Users/ardamavi/anaconda/bin/python -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /Users/ardamavi/anaconda/bin/python (found version "3.6")
-- Found PythonLibs: /Users/ardamavi/anaconda/lib/libpython3.6m.dylib
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.2.2
-- Using CMake version: 3.12.1
-- Compiling dlib version: 19.15.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Looking for png_create_read_struct
-- Looking for png_create_read_struct - found
-- Looking for jpeg_read_header
-- Looking for jpeg_read_header - found
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2")
-- Checking for module 'cblas'
-- No package 'cblas' found
-- Checking for module 'lapack'
-- No package 'lapack' found
-- Looking for sys/types.h
CMake Warning (dev) at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/CheckIncludeFile.cmake:70 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
CMAKE_REQUIRED_LIBRARIES is set to:
/usr/local/lib/libjpeg.dylib
For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/CheckTypeSize.cmake:225 (check_include_file)
/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/cmake_utils/find_blas.cmake:80 (check_type_size)
/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/CMakeLists.txt:545 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Found LAPACK library
-- Found CBLAS library
-- Looking for cblas_ddot
-- Looking for cblas_ddot - found
-- Looking for sgesv
-- Looking for sgesv - found
-- Looking for sgesv_
-- Looking for sgesv_ - found
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
-- Building a C++11 test project to see if your compiler supports C++11
-- ********** Your compiler failed to build a C++11 project. C++11 is required to use all parts of dlib! **********
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- C++11 activated (compiler doesn't have full C++11 support).
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/build/temp.macosx-10.7-x86_64-3.6
Invoking CMake build: 'cmake --build . --config Release -- -j2'
Scanning dependencies of target dlib
[ 0%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/base64/base64_kernel_1.cppIn file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/bigint/bigint_kernel_1.cpp::6:
5In file included from :
/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/base64/base64_kernel_1.hIn file included from :/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/bigint/bigint_kernel_1.h6::
7In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/base64/../algs.h:93:
:
In file included from In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/bigint/../algs.h::47093:
:
In file included from In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view/Library/Developer/CommandLineTools/usr/include/c++/v1/string:169:
:470In file included from :
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string/Library/Developer/CommandLineTools/usr/include/c++/v1/string_view::56169:
:
In file included from In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm/Library/Developer/CommandLineTools/usr/include/c++/v1/__string::64256:
:
In file included from In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/utility/Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm::203642:
:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:203/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:
:158:8/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:: 158:8: error: errorno member named 'uint8_t' in the global namespace:
no member named 'uint8_t' in the global namespace
using::uint8_t;
~~^using::uint8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:159:8: error: no member named 'uint16_t' in the global namespace
using::uint16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:159:8: error: no member named 'uint16_t' in the global namespace
using::uint16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:160:8: error: no member named 'uint32_t' in the global namespace
using::uint32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:160:8: error: no member named 'uint32_t' in the global namespace
using::uint32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:161:8: error: no member named 'uint64_t' in the global namespace
using::uint64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:161:8: error: no member named 'uint64_t' in the global namespace
using::uint64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:163:8: error: no member named 'int_least8_t' in the global namespace
using::int_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:163:8: error: no member named 'int_least8_t' in the global namespace
using::int_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:164:8: error: no member named 'int_least16_t' in the global namespace
using::int_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:164:8: error: no member named 'int_least16_t' in the global namespace
using::int_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:165:8: error: no member named 'int_least32_t' in the global namespace
using::int_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:165:8: error: no member named 'int_least32_t' in the global namespace
using::int_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:166:8: error: no member named 'int_least64_t' in the global namespace
using::int_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:166:8: error: no member named 'int_least64_t' in the global namespace
using::int_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:168:8: error: no member named 'uint_least8_t' in the global namespace
using::uint_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:168:8: error: no member named 'uint_least8_t' in the global namespace
using::uint_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:169:8: error: no member named 'uint_least16_t' in the global namespace
using::uint_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:169:8: error: no member named 'uint_least16_t' in the global namespace
using::uint_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:170:8: error: no member named 'uint_least32_t' in the global namespace
using::uint_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:170:8: error: no member named 'uint_least32_t' in the global namespace
using::uint_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:171:8: error: no member named 'uint_least64_t' in the global namespace
using::uint_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:171:8: error: no member named 'uint_least64_t' in the global namespace
using::uint_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:173:8: error: no member named 'int_fast8_t' in the global namespace
using::int_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:173:8: error: no member named 'int_fast8_t' in the global namespace
using::int_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:174:8: error: no member named 'int_fast16_t' in the global namespace
using::int_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:174:8: error: no member named 'int_fast16_t' in the global namespace
using::int_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:175:8: error: no member named 'int_fast32_t' in the global namespace
using::int_fast32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:175:8: error: no member named 'int_fast32_t' in the global namespace
using::int_fast32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:176:8: error: no member named 'int_fast64_t' in the global namespace
using::int_fast64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:176:8: error: no member named 'int_fast64_t' in the global namespace
using::int_fast64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:178:8: error: no member named 'uint_fast8_t' in the global namespace
using::uint_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:178:8: error: no member named 'uint_fast8_t' in the global namespace
using::uint_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:179:8: error: no member named 'uint_fast16_t' in the global namespace
using::uint_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:179:8: error: no member named 'uint_fast16_t' in the global namespace
using::uint_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:180:8: error: no member named 'uint_fast32_t' in the global namespace
using::uint_fast32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:180:8: error: no member named 'uint_fast32_t' in the global namespace
using::uint_fast32_t;
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
make[2]: *** [dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o] Error 1
make[1]: *** [dlib_build/CMakeFiles/dlib.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/setup.py", line 257, in <module>
'Topic :: Software Development',
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
return distutils.core.setup(**attrs)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 202, in run
self.run_command('build')
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/setup.py", line 133, in run
self.build_extension(ext)
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/setup.py", line 173, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "/Users/ardamavi/anaconda/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
----------------------------------------
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
Complete output from command /Users/ardamavi/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/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 /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-record-5jll06kb/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
package init file 'dlib/__init__.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 13:19:00)
Invoking CMake setup: 'cmake /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/build/lib.macosx-10.7-x86_64-3.6 -DPYTHON_EXECUTABLE=/Users/ardamavi/anaconda/bin/python -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PythonInterp: /Users/ardamavi/anaconda/bin/python (found version "3.6")
-- Found PythonLibs: /Users/ardamavi/anaconda/lib/libpython3.6m.dylib
-- Performing Test HAS_CPP14_FLAG
-- Performing Test HAS_CPP14_FLAG - Success
-- pybind11 v2.2.2
-- Using CMake version: 3.12.1
-- Compiling dlib version: 19.15.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Looking for png_create_read_struct
-- Looking for png_create_read_struct - found
-- Looking for jpeg_read_header
-- Looking for jpeg_read_header - found
-- Searching for BLAS and LAPACK
-- Searching for BLAS and LAPACK
-- Found PkgConfig: /opt/local/bin/pkg-config (found version "0.29.2")
-- Checking for module 'cblas'
-- No package 'cblas' found
-- Checking for module 'lapack'
-- No package 'lapack' found
-- Looking for sys/types.h
CMake Warning (dev) at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/CheckIncludeFile.cmake:70 (message):
Policy CMP0075 is not set: Include file check macros honor
CMAKE_REQUIRED_LIBRARIES. Run "cmake --help-policy CMP0075" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
CMAKE_REQUIRED_LIBRARIES is set to:
/usr/local/lib/libjpeg.dylib
For compatibility with CMake 3.11 and below this check is ignoring it.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/CheckTypeSize.cmake:225 (check_include_file)
/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/cmake_utils/find_blas.cmake:80 (check_type_size)
/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/CMakeLists.txt:545 (include)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Found LAPACK library
-- Found CBLAS library
-- Looking for cblas_ddot
-- Looking for cblas_ddot - found
-- Looking for sgesv
-- Looking for sgesv - found
-- Looking for sgesv_
-- Looking for sgesv_ - found
CUDA_TOOLKIT_ROOT_DIR not found or specified
-- Could NOT find CUDA (missing: CUDA_TOOLKIT_ROOT_DIR CUDA_NVCC_EXECUTABLE CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (Required is at least version "7.5")
-- Disabling CUDA support for dlib. DLIB WILL NOT USE CUDA
-- Building a C++11 test project to see if your compiler supports C++11
-- ********** Your compiler failed to build a C++11 project. C++11 is required to use all parts of dlib! **********
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- C++11 activated (compiler doesn't have full C++11 support).
-- Configuring done
-- Generating done
-- Build files have been written to: /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/build/temp.macosx-10.7-x86_64-3.6
Invoking CMake build: 'cmake --build . --config Release -- -j2'
Scanning dependencies of target dlib
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o
[ 1%] Building CXX object dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o
In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/base64/base64_kernel_1.cpp:6:
In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/base64/base64_kernel_1.h:6:
In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/base64/../algs.h:93:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string:470:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view:169:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:642:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:203:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:158:8: error: no member named 'uint8_t' in the global namespace
using::uint8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:159:8: error: no member named 'uint16_t' in the global namespace
using::uint16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:160:8: error: no member named 'uint32_t' in the global namespace
using::uint32_t;
~~^
In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/bigint/bigint_kernel_1.cpp:5:
In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/bigint/bigint_kernel_1.h:7:
In file included from /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/dlib/bigint/../algs.h:93:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string:470:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/string_view:169:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/__string:56:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/algorithm:642:
In file included from /Library/Developer/CommandLineTools/usr/include/c++/v1/utility:203:
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:158:8: error: no member named 'uint8_t' in the global namespace
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:161using::uint8_t;:
8 ~~^:
error: no member named 'uint64_t' in the global namespace
using::uint64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:159:8: error: no member named 'uint16_t' in the global namespace
using::uint16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:163:8: error: no member named 'int_least8_t' in the global namespace
using::int_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:160:8: error: no member named 'uint32_t' in the global namespace
using::uint32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:161:8: error: no member named 'uint64_t' in the global namespace
using::uint64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:164:8: error: no member named 'int_least16_t' in the global namespace
using::int_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:163:8: error: no member named 'int_least8_t' in the global namespace
using::int_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:165:8: error: no member named 'int_least32_t' in the global namespace
using::int_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:164:8: error: no member named 'int_least16_t' in the global namespace
using::int_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:166:8: error: no member named 'int_least64_t' in the global namespace
using::int_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:165:8: error: no member named 'int_least32_t' in the global namespace
using::int_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:168:8: error: no member named 'uint_least8_t' in the global namespace
using::uint_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:166:8: error: no member named 'int_least64_t' in the global namespace
using::int_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:169:8: error: no member named 'uint_least16_t' in the global namespace
using::uint_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:168:8: error: no member named 'uint_least8_t' in the global namespace
using::uint_least8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:170:8: error: no member named 'uint_least32_t' in the global namespace
using::uint_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:169:8: error: no member named 'uint_least16_t' in the global namespace
using::uint_least16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:171:8: error: no member named 'uint_least64_t' in the global namespace
using::uint_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:170:8: error: no member named 'uint_least32_t' in the global namespace
using::uint_least32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:173:8: error: no member named 'int_fast8_t' in the global namespace
using::int_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:171:8: error: no member named 'uint_least64_t' in the global namespace
using::uint_least64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:174:8: error: no member named 'int_fast16_t' in the global namespace
using::int_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:173:8: error: no member named 'int_fast8_t' in the global namespace
using::int_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:175:8: error: no member named 'int_fast32_t' in the global namespace
using::int_fast32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:174:8: error: no member named 'int_fast16_t' in the global namespace
using::int_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:176:8: error: no member named 'int_fast64_t' in the global namespace
using::int_fast64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:175:8: error: no member named 'int_fast32_t' in the global namespace
using::int_fast32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:178:8: error: no member named 'uint_fast8_t' in the global namespace
using::uint_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:176:8: error: no member named 'int_fast64_t' in the global namespace
using::int_fast64_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:179:8: error: no member named 'uint_fast16_t' in the global namespace
using::uint_fast16_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:178:8: error: no member named 'uint_fast8_t' in the global namespace
using::uint_fast8_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:180:8: error: no member named 'uint_fast32_t' in the global namespace
using::uint_fast32_t;
~~^
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:179:8: error: no member named 'uint_fast16_t' in the global namespace
using::uint_fast16_t;
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/Library/Developer/CommandLineTools/usr/include/c++/v1/cstdint:180:8: error: no member named 'uint_fast32_t' in the global namespace
using::uint_fast32_t;
~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [dlib_build/CMakeFiles/dlib.dir/base64/base64_kernel_1.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
20 errors generated.
make[2]: *** [dlib_build/CMakeFiles/dlib.dir/bigint/bigint_kernel_1.cpp.o] Error 1
make[1]: *** [dlib_build/CMakeFiles/dlib.dir/all] Error 2
make: *** [all] Error 2
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/setup.py", line 257, in <module>
'Topic :: Software Development',
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
return distutils.core.setup(**attrs)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/setup.py", line 133, in run
self.build_extension(ext)
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/setup.py", line 173, in build_extension
subprocess.check_call(cmake_build, cwd=build_folder)
File "/Users/ardamavi/anaconda/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '--build', '.', '--config', 'Release', '--', '-j2']' returned non-zero exit status 2.
----------------------------------------
Command "/Users/ardamavi/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/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 /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-record-5jll06kb/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-65c28zl5/dlib/
I use MacBook Pro (2017), macOS High Sierra 10.13.6
Python 3.6.0 (With Anaconda)
GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)
I try to re-install xcode and Command Line Tools, but problem not solved.
You must use a C++11 compiler. Your compiler is super old. You need a newer compiler.
Collecting dlib
Using cached https://files.pythonhosted.org/packages/df/aa/6a9bb2a763107bb2606d6ee1aa65fcd3b51375a9ef6436e9c9280b0dd63c/dlib-19.15.0.tar.gz
Building wheels for collected packages: dlib
Running setup.py bdist_wheel for dlib ... error
Complete output from command /Users/ardamavi/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-wheel-3t8qwk37 --python-tag cp36:
running bdist_wheel
running build
running build_py
package init file 'dlib/__init__.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 13:19:00)
Invoking CMake setup: 'cmake /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/lib.macosx-10.7-x86_64-3.6 -DPYTHON_EXECUTABLE=/Users/ardamavi/anaconda/bin/python -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- broken
CMake Error at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/Library/Developer/CommandLineTools/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_b3430/fast"
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_b3430.dir/build.make CMakeFiles/cmTC_b3430.dir/build
Building C object CMakeFiles/cmTC_b3430.dir/testCCompiler.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -std=c++11 -o CMakeFiles/cmTC_b3430.dir/testCCompiler.c.o -c /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeTmp/testCCompiler.c
error: invalid argument '-std=c++11' not allowed with 'C'
make[1]: *** [CMakeFiles/cmTC_b3430.dir/testCCompiler.c.o] Error 1
make: *** [cmTC_b3430/fast] Error 2
CMake will not be able to correctly generate this project.
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeOutput.log".
See also "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/setup.py", line 257, in <module>
'Topic :: Software Development',
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
return distutils.core.setup(**attrs)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 202, in run
self.run_command('build')
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/setup.py", line 133, in run
self.build_extension(ext)
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/setup.py", line 170, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "/Users/ardamavi/anaconda/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/lib.macosx-10.7-x86_64-3.6', '-DPYTHON_EXECUTABLE=/Users/ardamavi/anaconda/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
----------------------------------------
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
Complete output from command /Users/ardamavi/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/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 /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-record-tpo1qvqx/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
package init file 'dlib/__init__.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.6.0 |Anaconda custom (64-bit)| (default, Dec 23 2016, 13:19:00)
Invoking CMake setup: 'cmake /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/lib.macosx-10.7-x86_64-3.6 -DPYTHON_EXECUTABLE=/Users/ardamavi/anaconda/bin/python -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- broken
CMake Error at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/Library/Developer/CommandLineTools/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_9bc8d/fast"
/Library/Developer/CommandLineTools/usr/bin/make -f CMakeFiles/cmTC_9bc8d.dir/build.make CMakeFiles/cmTC_9bc8d.dir/build
Building C object CMakeFiles/cmTC_9bc8d.dir/testCCompiler.c.o
/Library/Developer/CommandLineTools/usr/bin/cc -std=c++11 -o CMakeFiles/cmTC_9bc8d.dir/testCCompiler.c.o -c /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeTmp/testCCompiler.c
error: invalid argument '-std=c++11' not allowed with 'C'
make[1]: *** [CMakeFiles/cmTC_9bc8d.dir/testCCompiler.c.o] Error 1
make: *** [cmTC_9bc8d/fast] Error 2
CMake will not be able to correctly generate this project.
-- Configuring incomplete, errors occurred!
See also "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeOutput.log".
See also "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/temp.macosx-10.7-x86_64-3.6/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/setup.py", line 257, in <module>
'Topic :: Software Development',
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/setuptools/__init__.py", line 140, in setup
return distutils.core.setup(**attrs)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run
return orig.install.run(self)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/command/install.py", line 545, in run
self.run_command('build')
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Users/ardamavi/anaconda/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/setup.py", line 133, in run
self.build_extension(ext)
File "/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/setup.py", line 170, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "/Users/ardamavi/anaconda/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/build/lib.macosx-10.7-x86_64-3.6', '-DPYTHON_EXECUTABLE=/Users/ardamavi/anaconda/bin/python', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
----------------------------------------
Command "/Users/ardamavi/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/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 /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-record-tpo1qvqx/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/f9/h90n2gr17kx4gtnty5fqp5300000gn/T/pip-install-9xjsn8r6/dlib/
I install with sudo conda install -c conda-forge dlib command.
Most helpful comment
I install with
sudo conda install -c conda-forge dlibcommand.