is it possible to install tensorflow-gpu on slicer 4.8.1 on Windows 10?
Slicer 4.8.1 has python 2.7 as backend and according to this discussion it shouldn’t be possible:
“On windows, it will currently work only for pure python wheels because the official package for python 2.7 are built with a compiler than the one used for the official wheels”.
Is this true? Are there any workarounds known?
Thank you for your attention.
I was able to install other packages like Keras and other “pure python wheels”, but tensorflow doesn’t seem to be one of those.
Changing Slicer version to nightly doesn’t seem to be a viable solution for me since I need some OpenIGTLink features which were not ported to Slicer 4.11 yet.
I really would not suggest going down this method of trying to get tensorflow-gpu into Slicer 4.8.1. This will ultimately require you to build Slicer 4.8.1 from source and also tensorflow-GPU from source, but even then there is likely lacking support for a version that can be built with Visual Studio 2013 as would be required. I believe the latest tensorflow is also Python 3 only as most packages have dropped python 2 support since it went EOL finally on January 1st 2020. So even then you wouldn’t be able to use the current tensorflow in anything other than Slicer 4.11 which uses Python 3.
Instead your effort is best worthwhile changing your logic to use a different event if you are waiting for the ReceiveEvent for OpenIGTLinkIF to be restored.
Slicer 4.11 preview uses Python 3 with modern compilers so there shouldn’t be any issue installing tensorflow-gpu. The OpenIGTLinkIF module is available within the SlicerOpenIGTLink extension if you would like to check out the latest code.
I accept your suggestion. I’ll probably try to do as you said and try to use a different event while I wait that ReceiveEvent is migrated aswell.
Thank you very much for your answer!
Adding the receive event should not be hard, it would be nice if you could implement it (you can ask advice from @Sunderlandkyl).