Boost.Python.ArgumentError: Python argument types Error

I'm trying to build graph-tool on Ubuntu 16 using anaconda Python and I did
managed to get it compiled, but I get the following error on import.

    return libcore.openmp_set_schedule(schedule, chunk)
Boost.Python.ArgumentError: Python argument types in
    graph_tool.libgraph_tool_core.openmp_set_schedule(str, int)
did not match C++ signature:
std::char_traits&lt;char>, std::allocator<char> >, int)


Thanks in advance.

This probably means that you used a different Python version when compiling
boost-python. If you are using ubuntu and anaconda, it is likely that
boost-python is linked against the system's version of Python, not anaconda's.


I removed all the system boost libraries and installed conda install boost.
After configure, which I verified is linking to the anaconda boost,

checking for boostlib >= 1.54.0... yes
checking whether the Boost::Python library is available... yes
checking whether boost_python is the correct library... yes
checking whether the Boost::IOStreams library is available... yes
configure: error: Could not link against boost_python !

Now I'm stuck.