I do not see any suspicious packages that could cause this.
Do you have any other code in your file other than following lines?
import torch
import torchvision
from torchvision import datasets, transforms
Train = datasets.MNIST("", train=True, download=True, transform=transforms.Compose([transforms.ToTensor()]))
Test = datasets.MNIST("", train=False, download=True, transform=transforms.Compose([transforms.ToTensor()]))
trainset = torch.utils.data.DataLoader(Train, batch_size= 10, shuffle=True)
testset = torch.utils.data.DataLoader(Test, batch_size= 10, shuffle=True)

for ii in trainset:
    print(ii)
    break