caffe icon indicating copy to clipboard operation
caffe copied to clipboard

pls help me " $python $impoort caffe"

Open kylezlj opened this issue 7 years ago • 2 comments

i use python3.6 ,and passed the sudo make pycaffe ,but when i import caffe in python ,i got mistakes like

zlj@zlj-virtual-machine:~/caffe$ python Python 3.6.7 (default, Oct 22 2018, 11:32:17) [GCC 8.2.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import caffe Traceback (most recent call last): File "", line 1, in File "/home/zlj/caffe/python/caffe/init.py", line 1, in from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer File "/home/zlj/caffe/python/caffe/pycaffe.py", line 13, in from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver,
ImportError: /home/zlj/caffe/python/caffe/_caffe.so: undefined symbol: _ZN5boost6python6detail11init_moduleER11PyModuleDefPFvvE

what should i do thanks!

kylezlj avatar Dec 24 '18 09:12 kylezlj

Could try: Makefile.config Uncomment to support layers written in Python (will link against Python libs) WITH_PYTHON_LAYER := 1

agonystyx avatar Jan 31 '19 01:01 agonystyx

Hi kylezlj have you fixed this? I got the same issue...

li-zihang avatar Jan 05 '20 11:01 li-zihang