Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zahidpichen opened this issue Dec 15, 2023 · 1 comment
Open

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

zahidpichen opened this issue Dec 15, 2023 · 1 comment

Comments

@zahidpichen
Copy link

zahidpichen commented Dec 15, 2023

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?

@zahidpichen zahidpichen changed the title Error: can Error: can't read numpy library in train.py Dec 15, 2023
@zahidpichen zahidpichen changed the title Error: can't read numpy library in train.py Error: can't read torch library in train.py Dec 15, 2023
@LuluW8071
Copy link

pip3 install torch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants