caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Make PyCaffe Error

Open fdkssdks opened this issue 8 years ago • 1 comments

Issue summary

import caffe results in: ImportError: No module named 'caffe._caffe' Solution I found was to run: make pycaffe that results in error:

/usr/bin/ld: cannot find -lboost_python3
collect2: error: ld returned 1 exit status
Makefile:507: recipe for target 'python/caffe/_caffe.so' failed
make: *** [python/caffe/_caffe.so] Error 1

Steps to reproduce

Caffe was build without any errors Ran make all, make test and make runtest successfully. Makefile config has enabled cudn, cuda, opencv-3, python3.5

Tried solutions

Tried to make clean and make all. Install boost. Proper caffe and python paths are passed in ~/.bashrc.

System configuration

  • Operating system: Ubuntu 16.04
  • Compiler:
  • CUDA version (if applicable): 9.0
  • CUDNN version (if applicable): 7.1
  • BLAS:
  • Python version (if using pycaffe): 3.5
  • MATLAB version (if using matcaffe):

fdkssdks avatar Jul 24 '18 18:07 fdkssdks

https://github.com/BVLC/caffe/issues/4843#issue-182962618

Iamanorange avatar Aug 16 '18 08:08 Iamanorange