I can confirm that it is an ABI issue. Using the library included with the python installation makes loading in python OK.
So does that mean if one wants to work with both C++ and python, one should always use the libraries included with the python installation? I haven’t looked at it, and I am not very sure if the python libraries include everything the libtorch installation offers.