Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Error building Caffe with Python 3 support

📅 2017-Jan-24 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

Caffe can be built with support for Python 2.x. This allows you to invoke Caffe easily from Python code. However, I wanted to call Caffe from Python 3.x code.

Sadly, this popped up errors of this type:

libboost_python.so: undefined reference to `PyClass_Type'

This type of error indicates that the Python 2.x Boost library was being used to compile with Python 3.x libraries.