Hello everybody,
I met the same problem.
I fix the problem, with following instructions:
1.) Install torch with the first three instruction on http://torch.ch/docs/getting-started.html 1.7k
2.) Follow the instructions of pytorch.org 589 for your specific system (But you have to add “sudo” before you paste the instructions pip3 …)
3.) After that you change your project interpreter in PyCharm, with 1) settings --> project interpreter /show all --> plus symbol --> add local --> choose your system interpreter --> Finally you change the project interpreter on system interpreter and here was the modules installed already
At the last point you can verify it by pasting the following code:

import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.nn.functional as F

If there are not any errors,that’s it!