Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headupinclouds/3a43990da30aee603917a103c3ffe48d to your computer and use it in GitHub Desktop.
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
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