Skip to content

ModuleNotFoundError: No module named 'torch.autograd' #1851

@samhaaf

Description

@samhaaf

Hello. I just did a fresh install on Ubuntu with Anaconda 3.6, and I'm getting the following error:

Traceback (most recent call last):
File "py_test.py", line 2, in
from torch.autograd import Variable
ModuleNotFoundError: No module named 'torch.autograd'

This is with a simple script:

import torch
from torch.autograd import Variable

Thank you in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions