caffe
caffe copied to clipboard
Python Caffe ImportError: dynamic module does not define module export function (PyInit__caffe)
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?
duplicated with #6054