Paging file problems when trying to import torch

Here’s my code -
I was able to work with torch until last night. Now, suddenly I get this error -


import numpy as np
import gym
import matplotlib.pyplot as plt
import os
import torch
import random
from torch import nn
from torch.utils.data import DataLoader
from torchvision import datasets, transforms
from collections import deque
import torchvision as tv
import torch.nn.functional as F
import sys
env = gym.make(“ALE/Pong-v5”)

OSError                                   Traceback (most recent call last)
Input In [1], in <cell line: 6>()
      4 import matplotlib.pyplot as plt
      5 import os
----> 6 import torch
      7 import random
      8 from torch import nn

File ~\anaconda3\envs\torch_1\lib\site-packages\torch\__init__.py:129, in <module>
    127     err = ctypes.WinError(last_error)
    128     err.strerror += f' Error loading "{dll}" or one of its dependencies.'
--> 129     raise err
    130 elif res is not None:
    131     is_loaded = True

OSError: [WinError 1455] The paging file is too small for this operation to complete. Error loading "C:\Users\thoma\anaconda3\envs\torch_1\lib\site-packages\torch\lib\shm.dll" or one of its dependencies.

You might be running into thus issue.

Actually, there was something wrong with my Windows Virtual Memory settings. Thank you for your help though.