Just in case anybody else had this problem, I was getting this when trying to install pytorch3d. Torch was installed and working properly but installing pytorch3d with pip was not possible and it kept giving me """No module named "Torch"""
I have fixed it with adding "--no-build-isolation".
The final command: "pip install --no-build-isolation git+https://github.com/facebookresearch/pytorch3d.git@f34104cf6ebefacd7b7e07955ee7aaa823e616ac#egg=pytorch3d"
Cheers