Open ys7yoo opened 5 years ago
caffe2_pybind11_state.cpython-35m-darwin.so
is under [PYTORCH FOLDER]/build/caffe2/python
Maybe, I should add it to LD_LIBRARY_PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Users/yyoo/src/pytorch/build/caffe2/python
Needs some environment variables
export PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/yyoo/src/pytorch/build/caffe2/python
This does not work.
export PYTHONPATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/
export DYLD_LIBRARY_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/caffe2/python:$DYLD_LIBRARY_PATH
Trying re-build WITHOUT Intel MKL
NO_CUDA=1 NO_CUDNN=1 python3 setup.py build
Were you able to solve the issue? I am facing a similar issue in that my system cannot find caffe2_pybind11 after succesful Caffe2 build. I downloaded and installed nccl2 as mentioned in another post, and after searching can only find pybind11 under a seperate subfolder, with no caffe2 prefix.