BVLC / caffe

Caffe: a fast open framework for deep learning.
http://caffe.berkeleyvision.org/
Other
33.96k stars 18.72k forks source link

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

Open za13 opened 3 years ago

za13 commented 3 years ago

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?

jaeseongBae commented 3 years ago

duplicated with #6054