Compiling Caffe: undefined reference to `_Py_Dealloc'

57 views
Skip to first unread message

Selma KaliAli

unread,
Mar 10, 2022, 9:03:02 AM3/10/22
to Caffe Users
Hello,

I'm trying to install caffe by following the instructions found here. But when compiling I get the following error:

$make all 
CXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin .
build_release/lib/libcaffe.so: undefined reference to `_Py_Dealloc' 
collect2: error: ld returned 1 exit status
Makefile:629: recipe for target '.build_release/tools/upgrade_net_proto_binary.bin' failed 
make: *** [.build_release/tools/upgrade_net_proto_binary.bin] Error 1

System configuration

  • Operating system: Ubuntu 18.04
  • CUDA version : 11.0
  • Python : anaconda python 3.8

Makefile.config
Message has been deleted

Selma KaliAli

unread,
Mar 13, 2022, 3:30:52 AM3/13/22
to Caffe Users
The issue was a compatibility problem between caffe and anaconda.
Reply all
Reply to author
Forward
0 new messages