Simple fix. I got this error going too fast and didn’t have python launched yet in my command line. After launching your virt env, start python up python, then you can put in the import torch code, and then test torch.cuda.is_available().