Skip to content

Error: can't read torch library in train.py #25

@zahidpichen

Description

@zahidpichen

when i tried to run train.py after activating virtual environment.

I got this error: (venv) PS M:\WorkSpace\GitHUB\pytorch-chatbot\myproject> python train.py
Traceback (most recent call last):
File "M:\WorkSpace\GitHUB\pytorch-chatbot\myproject\train.py", line 5, in
import torch
ModuleNotFoundError: No module named 'torch'

image

i then tried to install torch library, but I still couldn't solve the error.

now what should I do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions