PySide module import error: DLL load failed: %1 is not a valid Win32 application

Thanks, that did the trick. I had not realised that UE was using its own Python installation instead of the one from the OS, which makes complete sense now that I think about it.