Created
April 16, 2018 21:58
-
-
Save headupinclouds/3a43990da30aee603917a103c3ffe48d to your computer and use it in GitHub Desktop.
build pycaffe on OS X with consistent python via cmake using https://gitHub.com/ruslo/polly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
polly.py --toolchain xcode --verbose --install --config Release --fwd CPU_ONLY=ON PYTHON_LIBRARY=$(python-config --prefix)/lib/libpython2.7.dylib PYTHON_INCLUDE_DIR=$(python-config --prefix)/include/python2.7 PYTHON_EXECUTABLE=$(python-config --prefix)/bin/python2.7 | |
( cd _install/xcode/python/caffe/ && ln -s _caffe.dylib _caffe.so ) | |
export PYTHONPATH=${PYTHONPATH}:${PWD}/_install/xcode/python | |
python | |
import caffe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment