Another way to use C++ is by compiling a python extension. This directly interfaces with Python so (personally) I believe that it should always work since you import it just like a normal python module. As far as I have found there isn’t a ton of unofficial documentation about it so you probably need to be comfortable implementing code primarily only using the Python documentation (which is quite good) since there aren’t many tutorials about how to do it.
It should be noted that I do plan on writing a little intro about this soon (I have been quite busy as of late) since I think it’s a valuable and interesting skill people would benefit from learning how to use.