Home > OS >  Dlib win10 64 - bit python installation
Dlib win10 64 - bit python installation

Time:10-05

System: win10 64
Python 64
Installing a dlib develop any of the following:
Collecting dlib
Using cached dlib - 19.4.0. Tar. Gz
Building wheels for collected packages: dlib
Running the setup. Py bdist_wheel for dlib... The error
Complete the output from the command d: \ pyanaconda \ python exe - u - c "import setuptools, tokenize; __file__='c: \ \ users \ \ lenovo \ \ appdata \ \ local \ \ temp \ \ PIP - build - ups5vr \ \ dlib \ \ setup py'; F=getattr (tokenize, 'open', the open) (__file__); Code=f.r ead (). The replace (' \ r \ n ', '\ n'); f.close(); Exec (compile code, a __file__, 'the exec ()) "bdist_wheel - d c: \ users \ lenovo \ appdata \ local \ temp \ tmpuqy6vfpip - wheel - - python - tag cp27:
Running bdist_wheel
Running the build
Detected Python architecture: 64 - bit
Detected platform: win32
You cmake...
- The C compiler identification is MSVC 18.0.21005.1
- The CXX compiler identification is MSVC 18.0.21005.1
- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl. Exe
- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl. Exe - works
- Detecting C compiler ABI info
- Detecting C compiler ABI info - done
- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl. Exe
- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/x86_amd64/cl. Exe - works
- Detecting CXX compiler ABI info
- Detecting CXX compiler ABI info - done
- Detecting CXX compile the features
- Detecting CXX compile the features - done
- Could NOT find the Boost
- Found PythonLibs: D:/pyanaconda/libs/python27 lib (Found suitable version "2.7.12," minimum required is "2.6")
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- We couldn 't find the right version of boost python. If you installed the boost and you are still getting this error then you took have installed a version of the boost that was compiled with a company's version of visual studio than the one you are using. So you have to make sure that the version of visual studio is the same version that was 2 compile the copy of the boost you are using.
- Set the BOOST_ROOT and BOOST_LIBRARYDIR environment variables before running cmake.
- e.g. Something like this:
- set BOOST_ROOT=C: \ local \ boost_1_57_0
- set BOOST_LIBRARYDIR=C: \ local \ boost_1_57_0 \ stage \ lib
-
- You will also likely need to compile the boost yourself rather than using one of the precompiled
-- Windows binaries. Do this by going to the folder the tools/build/within the boost and running
- the bootstrap. Bat. Then run the command:
- b2 install
- And then add the output bin folder to your PATH. Usually this is the C: \ boost - build - engine \ bin
-- folder. Finally, go to the boost root and run a command like this:
- b2 - a - with python address - model=64 toolset=MSVC runtime - link=static
- the When of it, the set BOOST_LIBRARYDIR equal to wherever b2 put the compiled libraries.
- Note that you will need to set the address - model on the if you want a 32 or 64 - bit python library.
-
- the Next, and the when you invoke cmake to compile dlib you have to use cmake 's - G option to set the
- 64 vs 32 bit mode of visual studio. Also, if you want a Python3 library you will need to
- add - DPYTHON3=1. You do this with a statement like:
- cmake -g "Visual Studio 12 2013 Win64" - DPYTHON3=1.. \.. \ tools \ python
- Rather than:
- cmake.. \.. \ tools \ python
- Which will build a 32 bit Python2 module by default on most systems.
-
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
CMake Error at C:/Users/lenovo/AppData/Local/Temp/PIP - build - ups5vr dlib/dlib/cmake_utils/add_python_module: 116 (the message) :
Boost the python library not found.
The Call Stack (the most recent Call first) :
CMakeLists. TXT: 6 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/lenovo/AppData/Local/Temp/PIP - build - ups5vr dlib/tools/python/build/CMakeFiles/CMakeOutput log".
Error: cmake configuration failed.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Failed building wheel for dlib
Running the setup. Py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running the setup. Py install for dlib... The error
Complete the output from the command d: \ pyanaconda \ python exe - u - c "import setuptools, tokenize; __file__='c: \ \ users \ \ lenovo \ \ appdata \ \ local \ \ temp \ \ PIP - build - ups5vr \ \ dlib \ \ setup py'; F=getattr (tokenize, 'open', the open) (__file__); Code=f.r ead (). The replace (' \ r \ n ', '\ n'); f.close(); Exec (compile code, a __file__, 'the exec ()) "install - record c: \ users \ lenovo \ appdata \ local \ temp \ PIP - j4coio - record \ install - record. TXT - single - version - externally - managed - compile:
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related