First, insert the dependent library by referring to the entry below.
http://qiita.com/naoyu822/items/7cce2f2dbad24931cc87
Then insert dlib. In the above, the tarball has been dropped
pip install dlib
It may be.
At that time, an error such as "libpython3.5.dylib is missing" is displayed at the end and the build fails. Looking inside the given lib directory, there is no libpython3.5.dylib, but libpython3.5m.a.
It seems that if you add "--enable-framework" in the build of cpython, it will be built as the framework of OSX. Then dylib will be spit out under lib.
env PYTHON_CONFIGURE_OPTS="--enable-framework" xbuild/python-install 3.5.0 ~/local/python/3.5.0
env PYTHON_CONFIGURE_OPTS="--enable-framework" pyenv install 3.5.0
If you do, dylib will be spit out. Then you can install it again by `` `pip install dlib```.
Recommended Posts