caffe icon indicating copy to clipboard operation
caffe copied to clipboard

Python Caffe ImportError: dynamic module does not define module export function (PyInit__caffe)

Open za13 opened this issue 5 years ago • 1 comments

I use Python 3.6 and CUDA 11 in Ubuntu 16. I followed all the steps for building in http://tutorial.caffe.berkeleyvision.org/installation.html:

make all
make install
make runtest

and also uncommented the following lines in the `makefile.config:

PYTHON_LIBRARIES := boost_python3 python3.5m
PYTHON_INCLUDE := /usr/include/python3.5m \
             /usr/lib/python3.5/dist-packages/numpy/core/include

then I tried

make pycaffe
export PYTHONPATH=/home/me/Downloads/caffe/python:$PYTHONPATH

then in Python I type

import caffe

and get

ImportError: dynamic module does not define module export function (PyInit__caffe)

I get the same error if I try using cmake instead of makefile.config

can anyone help?

za13 avatar Sep 11 '20 21:09 za13

duplicated with #6054

jaeseongBae avatar Mar 18 '21 08:03 jaeseongBae