Import.im6: not authorized `torch'@ error/constitute.c/WriteImage/1072

After I installed pytorch 1.0, and run command :import torch
there is error prompt:

import.im6: not authorized `torch’@ error/constitute.c/WriteImage/1072.

I do not know how to solve the problem, could anybody help me?

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().

1 Like