我在Ubuntu 16中使用Python 3.6和CUDA11。我遵循了在http://tutorial.caffe.berkeleyvision.org/installation.html中进行构建的所有步骤:
make all
make install
make runtest
,并在`makefile.config中取消注释以下行:
PYTHON_LIBRARIES := boost_python3 python3.5m
PYTHON_INCLUDE := /usr/include/python3.5m \
/usr/lib/python3.5/dist-packages/numpy/core/include
然后我尝试
make pycaffe
export PYTHONPATH=/home/me/Downloads/caffe/python:$PYTHONPATH
然后在Python中输入
import caffe
并获得
ImportError: dynamic module does not define module export function (PyInit__caffe)
如果我尝试使用cmake
而不是makefile.config
有人可以帮忙吗?