Installing dlib with python bindings

时间:2016-12-07 08:31:48

标签: python macos python-3.x anaconda dlib

I'm trying to install and compile dlib with the python bindings. I tried cloning from github and running the commands:

mkdir build; cd build; cmake .. ; cmake --build .
python setup.py install

The first command works just fine but the second one gives me an error message:

4 warnings generated.
make[2]: *** No rule to make target `/Users/username/anaconda/lib/libpython3.5.dylib', needed by `dlib.so'.  Stop.
make[1]: *** [CMakeFiles/dlib_.dir/all] Error 2
make: *** [all] Error 2
error: cmake build failed!

I tried running pip install dlib and I got the same exact error message.I also have both boost and boost-python installed via homebrew. I'm running on Mac OSX 10.10 and my version of python is: Python 3.5.2 :: Anaconda custom (x86_64)

Any help would be much appreciated!

1 个答案:

答案 0 :(得分:0)

我将文件名从libpython3.6m.dylib更改为libpython3.6.dylib,错误消失了。