Hi,
I don’t exactly remember my previous cuda version,  I installed cuda version 11.
installing tensorflow-gpu then installing pytorch with same cuda version as tensorflow-gpu cuda did the trick for me.
Thanks