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

ModuleNotFoundError: No module named 'torchvision' #3254

Open
2 of 4 tasks
Zerycii opened this issue Nov 23, 2024 · 1 comment
Open
2 of 4 tasks

ModuleNotFoundError: No module named 'torchvision' #3254

Zerycii opened this issue Nov 23, 2024 · 1 comment

Comments

@Zerycii
Copy link

Zerycii commented Nov 23, 2024

System Info

- `Accelerate` version: 1.0.1
- Platform: Linux-5.4.0-42-generic-x86_64-with-glibc2.31
- `accelerate` bash location: /home/lmh/.local/bin/accelerate
- Python version: 3.10.9
- Numpy version: 1.23.5
- PyTorch version (GPU?): 1.12.1 (False)
- PyTorch XPU available: False
- PyTorch NPU available: False
- PyTorch MLU available: False
- PyTorch MUSA available: False
- System RAM: 503.62 GB

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
  • My own task or dataset (give details below)

Reproduction

import torch
import torchvision
print("666")
image
when I use accelerate to run my code I meet this error.But if I use python test_error.py , it's fine.
How can I use accelerate?

Expected behavior

How can I use accelerate?Please help me

@Zerycii
Copy link
Author

Zerycii commented Nov 23, 2024

In addition, I have already installed torch and torchvision!
image
image

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

1 participant